[Exim] Multiple Smart hosts by domain

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Kevin W. Reed
Fecha:  
A: exim-users
Asunto: [Exim] Multiple Smart hosts by domain
Exim 3.3X...

Attempting to replace Sendmail Switch on what is really
a Mail Hub.

Default configuration works great with two exceptions...

1) Rather than attempting to deliver directy, all outbound
mail for unknown or unspecified domains need to be sent
to a smart host. Currently it tries to deliver them directly.

2) Some domains need to be smart hosted to different smarthost
server for delivery.

There could end up to be a number of different domains each
needing a different smart host for delivery.

As I understand it. I need to setup a director that catches
these so it knows how to transport it.

Vaugely like:

If domains = "Domain1 Domain2 Domain3"
    Smart host to mailserver1


if domains = "Domain4"
    Smart host to mailserver2


Anything else
    Smart host to mailserver3




Current Directors section looks like this...

##########################################################################

system_aliases:
domains = domain1
driver = aliasfile
file = /etc/aliases
search_type = lsearch
user = exim
group = mail
file_transport = address_file
pipe_transport = address_pipe

userforward:
domains = domain1
driver = forwardfile
file = .forward
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

localuser:
domains = domain1
driver = localuser
transport = local_delivery

##########################################################################

I'm guessing that I need to add to after localuser something like:

forward_direct:
domains = "partial-lsearch;/usr/local/exim/Route_directlist"
driver = smarthost
???

forward_remaining:
driver = smarthost
????


Route_directlist would be just a simple list:
Domain2
Domain3
Domain4


but I'm not sure how to complete the directors and how to setup the
transport for them.