Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
From: Wietse Venema (wietseporcupine.org)
Date: Mon Jun 08 2009 - 16:22:43 CDT
> X-Virus-Scanned: clamav-milter 0.95.1 at ...
> X-Virus-Status: Clean
> X-Spam-Flag: YES
> X-Spam-Status: Yes, score=11.6 required=7.0...
> X-Spam-Level: ***********
> X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ...
> I think that milters works correctly. I save message as message.txt for
> next row in main.cf is:
> header_checks = regexp:/usr/local/etc/postfix/header_checks
> in header_checks file is:
> /^X-Spam-Status: Yes/ DISCARD
I have added header checks for Milter-generated mail headers.
The feature is called "milter_header_checks".
It is available from Postfix mirrors as postfix-2.7-20090607, and
also available as an optional patch for Postfix 2.6.
milter_header_checks (default: empty)
Optional lookup tables for content inspection of message headers that
are produced by Milter applications. See the header_checks(5) manual
page available actions. Currently, PREPEND is not implemented.
The following example sends all mail that is marked as SPAM to a spam
handling machine. Note that matches are case-insensitive by default.
milter_header_checks = pcre:/etc/postfix/milter_header_checks
/^X-SPAM-FLAG:\s+YES/ FILTER mysmtp:sanitizer.example.com:25
The milter_header_checks mechanism could also be used for whitelisting.
For example it could be used to skip heavy content scans for DKIM-
signed mail from known friendly domains.
This feature is available in Postfix 2.7, and as an optional patch for