1

Exim4 uses remote SMTP to deliver to @mydomain.com even though mydomain.com is in /etc/mailname

view story
linux-howto

http://serverfault.com – As described in the title. If mydomain.com is THE local domain, why would exim attempt delivering mail by contacting it, rather than just storing it in a local mbox? I.e. when I do echo hello | mail root, it sends an email to [email protected] by contacting an MX listed in mydomain.com. The configs are the default Debian stable. Incidentally, this behavior is what I actually want, as mydomain.com uses Google Apps, so I want all mail to be delivered to an MX listed there, but I also want a server of mine to behave like it's its own name too (i.e. its locally sent mail should be from @mydomain. (HowTos)