In your SSH, as root, run:
Code: Select all
mcedit /etc/exim4/exim4.conf.template
Code: Select all
domainlist local_domains = dsearch;/etc/exim4/domains/
Code: Select all
domainlist local_domains = !domain.com : dsearch;/etc/exim4/domains/
Code: Select all
domainlist local_domains = !domain1.com : !domain2.com : dsearch;/etc/exim4/domains/
Code: Select all
systemctl restart exim4
Doing this means we don't have to delete the 'domain.com' domain from the MAIL section to prevent internal mailing problems. So in this case server will not do local_delivery for domain.com (in the case when MX records are pointing to another email server) and in another hand, we would preserve domain.com in the MAIL section in case when we need to save mail addresses