Re: [exim] Searching for address in router

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tony Finch
Date:  
À: David Cannings
CC: exim-users
Sujet: Re: [exim] Searching for address in router
On Mon, 11 Apr 2005, David Cannings wrote:
>
> Essential I'm looking for a router which will validate whether the given
> address is in a file, say /etc/exim/virtuals/virtual.


Exim doesn't have a totally straight-forward option for doing this because
it matches recipient domains and local parts separately. So there are two
ways of solving your problem: you can either use an accept router like
your existing virtual router, and have one file per domain of virtual
users each containing a list of local parts; or you can use a condition
such as
${lookup {$local_part@$domain} lsearch {/etc/exim/virtual/$domain} {yes} {no} }

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}