Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Exim4: Unrouteable address
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Exim4: Unrouteable address

edited January 2014 in Help

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 ** [email protected] 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

Comments

  • derpderp Member
    edited January 2014

    Hi. You'll want to change dc_other_hostnames to be 'host.example.com; localhost', where host equals the name you've given to your webserver. If you leave it as example.com only then your web server will try to deliver mail for [email protected] locally and that's why it's currently failing.

    Thanked by 1sergiodelatorre
  • edited January 2014

    I have the same error after the modification

    Any ideas?

  • Solved adding a router in /etc/exim4/exim4.conf.template

    mail_to_example:
    driver = manualroute
    transport = remote_smtp
    domains = example.com
    route_list = * mail.example.com

Sign In or Register to comment.