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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: John Horne
日付:  
To: exim-users
題目: 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