|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Wietse Venema (wietse
porcupine.org)
Date: Mon Jun 08 2009 - 16:22:43 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jiri Veselsky:
> 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
> testing.
>
> 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.
Wietse
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.
/etc/postfix/main.cf:
milter_header_checks = pcre:/etc/postfix/milter_header_checks
/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
Postfix 2.6.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]