Re: [exim] Counting the number of headers in an incoming ema…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Lena
Dátum:  
Címzett: exim-users
Régi témák: [exim] Counting the number of headers in an incoming email (was Re: Limit the total number of headers in incoming SMTP messages?)
Tárgy: Re: [exim] Counting the number of headers in an incoming email
> From: Chris Siebenmann

> We use a commercial anti-spam system behind our Exim-based inbound MX
> gateway that turns out to be unhappy if a message has 'too many' headers
> (where this is an undocumented value of more than 512 headers). I'd like
> to detect and reject these messages in the DATA phase


deny message = This message has too many header lines (>512)
     condition = ${if match{$message_headers}{\N(\S.+\n(\s.+\n)*){512}\N}}


> Exim inserts a Received: header of its own on top