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:
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 <= firstname.lastname@example.org U=www-data P=local S=3751 email@example.com
2011-03-11 09:57:06 1PxxDe-0003xb-6j ** firstname.lastname@example.org: Unrouteable address
frontend:/var/log/exim4# exim -bt email@example.com
R: system_aliases for firstname.lastname@example.org
email@example.com is undeliverable: Unrouteable address
And so for all addresses in that domain except (!!) firstname.lastname@example.org...
frontend:/var/log/exim4# exim -bt email@example.com
R: system_aliases for firstname.lastname@example.org
R: system_aliases for email@example.com
R: userforward for firstname.lastname@example.org
R: procmail for email@example.com
R: maildrop for firstname.lastname@example.org
R: lowuid_aliases for email@example.com (UID 1000)
R: local_user for firstname.lastname@example.org
router = local_user, transport = mail_spool
For all other domains the mail goes fine. What could it be and how with it to struggle?