Re: [Exim] rewriting

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Marc MERLIN
CC: exim-users
Assumpte: Re: [Exim] rewriting
On Wed, 2 May 2001, Marc MERLIN wrote:

> I'd like to do this:
> *@abc.net                ${lookup{$1}lsearch{/etc/mail/abcnetfwd}{$1@???}fail}     T
> *@lsearch;/etc/mail/abcdomains        ${lookup{$1}lsearch{/etc/mail/abcnetfwd}{fail}{$1@???}}   hF

>
>
> abcdomains contains a list of domains, that includes abc.net, and
> foo@oneofthosedomains should be rewritten to foo@??? except if the
> user is listed in /etc/mail/abcnetfwd
> Having fail in the middle of the second rule doesn't work.



> Is there a syntax to make the above work?


Yes. Replace "{fail}" by "{$local_part@$domain}"

:-)


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.