Re: [Exim] Urgent! How to redirect all mail for one domain …

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Dave C.
Datum:  
To: yann.golanski
CC: Ray Vermey, exim-users
Betreff: Re: [Exim] Urgent! How to redirect all mail for one domain to 2 users outside domain ?

On Tue, 21 Sep 1999 yann.golanski@??? wrote:

> Quoting Ray Vermey (Tue, Sep 21, 1999 at 02:05:50PM +0100)
> > Hi exim-users,
> >
> > i have an urgent matter on hands,
> >
> > i have the following question:
> >
> > all mail to all possible user on domain mydomain.com have to be
> > forwarded/redirected to jdoe@??? and jdoe2@???
>
> Main filter file:
>
> if $header_to: contains "mydomain.com"
> then deliver doe@??? jdoe2@???



It might work better if you used $recipients instead of $header_to,
since the To: header doesn't always contain the address that is being
delivered (Eg,. Bcc, mailing lists, spam(ugh), .forward files, etc...)