Re: [exim] RFC 5532 enforcement

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: W B Hacker
Ημερομηνία:  
Προς: exim users
Αντικείμενο: Re: [exim] RFC 5532 enforcement
Jeremy Harris wrote:
> On 10/13/10 16:13, Todd Lyons wrote:
>> To enforce this within exim, I have a simple ACL and perl function
>> that will count whatever headers you ask it to.
>
> Would this work?
>
> condition= ${if match {$message_headers} {\N(?ms).*^From: .*^From: \N}}
>
> Less flexible, I admit; you don't get an actual count. Let's get
> into real Exim-abuse:
>
> set acl_m_h_name = From
> set acl_m_h_count = ${reduce {<\n $message_headers} \
>                                                   {0} \
>                                                   {${eval:$value+${if match{$item}{^$acl_m_h_name: } {1}{0}}}}}

>
> Look ma! No Perl!


'...no Perl' gets my vote.

And there must be other ways also.

Anyone know if Exim's existing protocol-violation/bad-format code has such
tools? Or could/should have?


> Caveat emptor: I've not actually tried these.
>
> - Jeremy
>


I'm not sure I even have arrivals against which to try it.

The suspicion (here) is that such deliberate-shenanigans are more likely than
not to arrive from sources I'd reject on rDNS fail or similar 'basics' - not
from otherwise-legit senders.

Bill