[Exim] Re: Changeover from sendmail (exim newbie)

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Patrick Starrenburg
Fecha:  
A: exim-users
Asunto: [Exim] Re: Changeover from sendmail (exim newbie)
Luke

One question for you - you mention directors which means Exim 3.x, you really
should be only looking at Exim 4.x - it is actually much easier than 3.x to
setup :-) you only have routers --- and transports.

By host-names you mean machine names or domains??

Re: your last point (in Exim 4 terms) and aliases you can have more than one
alias *router* and the order of routers is important. The usual alias router
searchs /etc/aliases for an entry to match the local part of the address
'translates' the address and then reprocesses it. Looks like this:

data = ${lookup{$local_part}lsearch{/etc/aliases}}

if you want to lookup values which have different domains i.e. you may have a
fred@??? and fred@??? then you can't restrict to local part. I
believe that (not 100% sure)

data = ${lookup lsearch{/etc/mail/virtualusertable}}

should do it. *But* lsearch does not support wildcards. There is lots of info
on this in chapters 8-10 of Exim 4 Specification document including format
needed for files.

So - you could try routers in order 1) virtualusertable 'aliases' 2) usual
/etc/mail/aliases 3) local user mailboxes

Someone else may be able to give you more specifics for formats.

Good luck

PS