Re: [exim] Re: Extract email address from From header

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Marc Perkel
Dátum:  
Címzett: Andreas Metzler
CC: exim-users
Tárgy: Re: [exim] Re: Extract email address from From header
Thanks - that's probably it! That bites me every time! Let me test that!

Andreas Metzler wrote:

>Marc Perkel <marc@???> wrote:
>[...]
>
>
>>The first one works. It tests the sender. The second one tests the From
>>header and it soesn't seem to work.
>>
>>
>
>
>
>># - Master Block List Sender
>>
>>
>
>
>
>>deny    message = REJECTED - Sender listed in master block list
>>       condition = ${if exists{/etc/exim/acllists/blockfrom.txt}\

>>
>>
>
>
>
>>{${lookup{$sender_address}wildlsearch{/etc/exim/acllists/blockfrom.txt}{yes}{no}}}\
>> {no}}
>>
>>
>
>
>
>># - Master Block List From
>>
>>
>
>
>
>>deny    message = REJECTED - Sender listed in master block list
>>       condition = ${if exists{/etc/exim/acllists/blockfrom.txt}\

>>
>>
>
>
>
>>{${lookup{${local_part:$h_From:}@${domain:$h_From:}}wildlsearch{/etc/exim/acllists/blockfrom.txt}{yes}{no}}}\
>> {no}}
>>
>>
>
>Looks like you are running these tests in RCPT acl, before the
> From:-header is transfered. You'll need to move the second test to
>the DATA-acl. (And as previously said $address instead will make the
>whole thing a lot more readable.)
>             cu andreas

>
>
>


--
Marc Perkel - marc@???

Spam Filter: http://www.junkemailfilter.com
    My Blog: http://marc.perkel.com