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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Dave C.
Date:  
À: John Horne
CC: exim-users
Sujet: RE: [Exim] rewriting From: based on To:


And what do you want it to do if you send a message to a mix of
addressees, some which are @nick.ecks.org, and some which are not? Exim
maintains only one copy of the message and its headers, you can't
rewrite for some deliveries and not for others.

It is a good idea to have your email address be valid in any context.
If this is a concept of filling different shoes depending on who you are
talking to (or even what you are talking about), then if your MUA
supports "Roles" or "Identities" (At the very least, I know pine and
MSOE do), that may be a better way to go. (Then you can choose which
sender to be, even when sending a message to mixed recipients, or even
based on the content of the mail)


On Wed, 30 May 2001, John Horne wrote:

> 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

>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>


--