Re: [exim] SRS forward

Startseite
Nachricht löschen
Nachricht beantworten
Autor: John Horne
Datum:  
To: exim-users
Betreff: Re: [exim] SRS forward
On Wed, 2010-06-30 at 14:18 -0700, Phil Pennock wrote:
> On 2010-06-30 at 20:15 +0000, Christian Gregoire wrote:
> > I've written an SRS forward router, which works fine but it always rewrites the sender address when I'd expect the rewrite to occur only if the incoming domain has an SPF record. Is that possible ?
>
> condition = ${if match{${lookup dnsdb{defer_never,txt=$sender_address_domain}}}{\N^v=spf1\s\N}}
>

We have found that occasionally multiple TXT records are present (for
other things than SPF), and so tend to use a multiline regex. In the
above example it would become:

    ...{\N^(?m)v=spf1\s\N}}




John.

-- 
John Horne, University of Plymouth, UK
Tel: +44 (0)1752 587287    Fax: +44 (0)1752 587001