I have two servers:
example.com: web (http)
mail.example.com: mail server (imap, smtp, pop...)
I'm tryng to install Exim4 in example.com for sending mails from php scripts. All works ok unless you send a mail to a @example.com address.
error: 2014-01-10 00:34:26 1W1P7K-00081X-Ne ** user@example.com root@example.com: Unrouteable address
/etc/exim4/update-exim4.conf.conf
dc_eximconfig_configtype='internet'
dc_other_hostnames='example.com; localhost'
dc_local_interfaces='127.0.0.1'
dc_readhost='example.com'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='maildir_home'
It's obvious that exim4 is searching the user in the same machine, instead of sending to mail.example.com...
...but what i shold do to configure it well?
Thanks