Hi, Habr.
Is the following scenario.
Have a domain, let's call it example.com with the mail, which is serviced by Google Apps. There is a second domain, secondexample.com service (for internal purposes).
There was a need to send mail from the site example.com with the same domain.
For this the following was done:
dpkg-reconfigure exim4-config
The selected "Internet site" you entered the domain name, prohibited a relay for other domains, and SMTP is open only for localhost, everything is fine.
Then, in the DNS have been made the following entry:
example.com IN TXT v=spf1 a mx ptr ptr:example.com include:_spf.google.com ~all
It seems everything works fine.
But today I found the following in the log:
2011-03-11 09:57:06 1PxxDe-0003xb-6j <= root@example.com U=www-data P=local S=3751 id=21160bfc9f300f2c7d24d1b2a3c0eb11@secondexample.com
2011-03-11 09:57:06 1PxxDe-0003xb-6j ** xxxyyyzzz@example.com: Unrouteable address
frontend:/var/log/exim4# exim -bt xxxyyyzzz@example.com
R: system_aliases for xxxyyyzzz@example.com
xxxyyyzzz@example.com is undeliverable: Unrouteable address
And so for all addresses in that domain except (!!) root@example.com...
frontend:/var/log/exim4# exim -bt root@example.com
R: system_aliases for root@example.com
R: system_aliases for austin@example.com
R: userforward for austin@example.com
R: procmail for austin@example.com
R: maildrop for austin@example.com
R: lowuid_aliases for austin@example.com (UID 1000)
R: local_user for austin@example.com
austin@example.com
<-- root@example.com
router = local_user, transport = mail_spool
For all other domains the mail goes fine. What could it be and how with it to struggle?
Thank you!