I'm running exim4 as my MTA and it works great to send emails to outside emails other than my hostname.
When I send an email to my gmail via command line (sendmail [email protected], etc...) it works fine.
When I send an email to my website's domain, which is also the hostname for the server, i'm assuming it just does local delivery... which won't work because my email is received by another server (Google Apps).
So how do I disable local delivery in Exim4? dpkg-reconfigure exim4-config did not give any real results.
Run
dpkg-reconfigure exim4-config
, selectmail sent by smarthost; no local mail
and fill out the asked information.You're server's name should not be the domain name... it should have a hostname like "server" under your domain "example.com", so the FQDN is "server.example.com".