On 2/18/2014 10:54 AM, Vladimir Kozlov wrote:
> I'd like to reject messages without some headers (say, Date: or
> Message-ID:).
> As far as I understand, headers-checks and body-checks could be done
> as described at http://www.postfix.org/BACKSCATTER_README.html
> 
> The only question I could not find answer to is: how to write regexp
> for _absence_ of a header(s)?
> 
> Kind regards,
> Vladimir.
> 


The header_checks feature scans one header at a time and does not
save state between headers, making it impossible to detect missing
headers.

To detect missing headers you'll need a content filter such as
SpamAssassin.



  -- Noel Jones

Reply via email to