RE: [Exim] rewriting From: based on To:

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: John Horne
Data:  
Para: exim-users
Asunto: RE: [Exim] rewriting From: based on To:
On 29-May-01 at 22:37:40 Eric Benoit wrote:
> I'm attempting to rewrite the headers of an outbound message based on its
> destination. I've set my MUA to use 'eric@???', which is fine for
> pretty much everything. However, for local delivery, I would like to have
> Exim substitute 'eric@???' for any recipient '@nick.ecks.org'.
>
> eric@??? "${if eq {$header_to:}{@nick.ecks.org} \
> {eric@???}fail}"
>

Try:

  eric@???  "${if match {$header_to:}{@nick.ecks.org} \
     {eric@???}fail}"


Just swap 'eq' for 'match'.

Note that you may well want to check Cc:/Bcc: headers as well.


John.

------------------------------------------------------------------------
John Horne, University of Plymouth, UK           Tel: +44 (0)1752 233914
E-mail: jhorne@???
PGP key available from public key servers