[Exim] lowest numbered MX record points to local host

Top Page
Delete this message
Reply to this message
Author: Darren Casey
Date:  
To: exim-users
Subject: [Exim] lowest numbered MX record points to local host
Running a custom system but stuck.

Just migrated from sendmail to exim, we use inetd/hosts.allow and multiple
IP's to use a virtual POP/SMTP system

So far the migration went smoothly. However hit across a problem.

If I mail systemusername@??? the /etc/aliases file should list

sysetmusername: sysetmusername@???

With sendmail it used to just resend the mail to the virtual-domain and it
was delivered that way but now I am using exim it gives the MX error

Most of the time this won't be a problem but there could be times this is
used/needed so would be nice to work a fix.

I don't think it matters but :-

We use a custom perl mailer for local users so :-
# /etc/sendmail.cR contains
domain system_user

#This is out local domains file

domainlist local_domains = lsearch;/etc/sendmail.cR : @
domainlist relay_to_domains = lsearch;/etc/sendmail.cR
hostlist relay_from_hosts = 127.0.0.1 : lsearch:/var/log/pop_log

# Because we use our own perl mailer we have to turn off validation of local
users

  accept  domains       = +local_domains
          endpass
          message       = unknown user
          #verify        = recipient


system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
# user = exim
file_transport = address_file
pipe_transport = address_pipe

localuser:
driver = accept
# check_local_user
transport = local_delivery


local_delivery:
driver = pipe
command = /usr/local/sbin/mailer $sender_address $local_part $domain
delivery_date_add
envelope_to_add
return_path_add

Thanks

Darren