[Exim] Routing all 'non local' mail to one central server

Top Pagina
Delete this message
Reply to this message
Auteur: Pascal
Datum:  
Aan: exim-users
Onderwerp: [Exim] Routing all 'non local' mail to one central server
Howdy,


I have an exim 4.02 config, with several virtual domains through dbm
files. The dbm files contain local parts, as well as forwards to
addresses on remote mail servers.

For one domain I would now like to forward all mail that cannot
be delivered locally, or be specificly forwarded to another address
to goto one central mail server.

I've added a special router:


special_mydomain_router:
driver = manualroute
domains = thisdomain.com
transport = remote_smtp
local_parts = !
${lookup{$local_part}dbm*{/usr/local/etc/maildb/$domain.dbm}}
ignore_target_hosts = 127.0.0.0/8
route_list = * mail.thisdomain.com byname
no_more



Which works great for forwarding all mail that cannot be deliverd locally
to this central server. However all mail that should be forwarded to remote
addresses also get send to this server.

How can I make this work so that all mail gets either dropped locally,
forwarded
specificly to another email address outside my domain, or if that failed
send to
the remote central server for processing?

Any help would be appreciated.


Cheers,

Pascal