[exim] Help with Multiple Router Configuration

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Matt Williams
Fecha:  
A: exim-users
Asunto: [exim] Help with Multiple Router Configuration
I am using exim to process my inbound mail.
I want to lookup an address in the database, and see if it is to be
redirected to another email address.
However, I ALSO want to check the same email address for local delivery. As
my customers may wish to have a mailbox for that account, as well as forward
a copy of the email elsewhere.
With the configuration below, it will forward correctly, but not deliver
locally if the account is also to be redirected. Basically - I want to be
able to redirect AND perform local delivery for the same account.
How can I fix this?

Best Regards,

Matt Williams


virtual_forwards:
driver = redirect
file_transport = address_file
pipe_transport = address_pipe
data =${lookup mysql{SELECT email.email_redirect FROM email,domains WHERE
emai
l.domain_id=domains.domain_id AND email.email_alias LIKE '${local_part}' AND
dom
ains.domain_name LIKE '${domain}' and email.email_type='r'}}

virtual_user:
driver = accept
condition = ${lookup mysql {SELECT email.email_id FROM email,domains WHERE
ema
il.domain_id=domains.domain_id AND email.email_alias LIKE '${local_part}'
AND do
mains.domain_name LIKE '${domain}' AND email.email_type='l'}}
transport = virtual_delivery

_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger
http://www.msn.co.uk/messenger