Exim: Deliver some email address on local domain remotely

Most of my email is handled by a server I run, except for a few legacy address I can’t really move for now.  Before I had been lazy and send simply relayed all mail that didn’t have a local mailbox onto the second server.  However I was forwarding shed loads of emails to duff address.  To fix this I have entered a new router into exim and removed the other domain from the relay list.

  debug_print = "R: special_remote for $local_part@$domain"
  driver = dnslookup
  domains = pobice.com
  local_parts = lsearch;/etc/exim4/non_local
  transport = remote_smtp
  ignore_target_hosts =

I then have entered the local_parts into a file.  Everything else then gets bounced, rather than been forwarded and bounced later on.

Word of warning – I’m no exim expert, but this seems to do the trick for me.

July 24, 2009 · robert · Comments Closed
Posted in: Howtos, Linux