Re: [Exim] stupid question about golbal filtering and forwar…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Jeffrey Goldberg
Fecha:  
A: Tibor Koleszar
Cc: exim-users
Asunto: Re: [Exim] stupid question about golbal filtering and forwarding
On Tue, 9 May 2000, Tibor Koleszar wrote:

> I've written a litte rule into the global filter file, which is forwarding
> mails.
>
>
> if ${lookup{$recipients}lsearch{/etc/mail/forward}{$value}} is not ""
> then
> headers add "X-Forwarder-by: mail.oldwnet.hu at $tod_log"
> deliver "${lookup{$recipients}lsearch{/etc/mail/forward}{$value}}"
> endif
>
> And the /etc/mail/forward file is a simple lseach foo: foo type file.
> So,it works nicely is there is just one recipient in $recipients variable.
> If there are more, lookup cant handle it. Any other way to make a
> pre-interpreted global forwarding?


Why is this being done via a filter file? Wouldn't it be better to just
set up a specific director/transport pair which adds the header?

-j

-- 
Jeffrey Goldberg                +44 (0)1234 750 111 x 2826
 Cranfield Computer Centre      FAX         751 814
 J.Goldberg@???     http://WWW.Cranfield.ac.uk/public/cc/cc047/
Relativism is the triumph of authority over truth, convention over justice.