[Exim] rewriting

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Marc MERLIN
Fecha:  
A: exim-users
Asunto: [Exim] rewriting
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.


So, right now, I'm doing this instead:
*@abc.net                ${lookup{$1}lsearch{/etc/mail/abcnetfwd}{$1@???}fail}   T
*@abc.net                ${lookup{$1}lsearch{/etc/mail/abcnetfwd}{$1@_dummy_abc.net}fail}   hF
*@lsearch;/etc/mail/abcdomains        $1@???      hE 
*@_dummy_abc.net            $1@???      hE


Is there a syntax to make the above work?

Thanks,
Marc
-- 
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking


Home page: http://marc.merlins.org/ | Finger marc_f@??? for PGP key