On 10/26/2009 2:15 PM, Eero Volotinen wrote:
I am running ssl+sasl authenticated mailgateway and problem is that in
some cases clients from world are sending mail from "blacklisted" networks.

The main problem is that spamassasin is analyzing received headers and
it might tag message as spam by received by headers.

I don't think SA does that by default, but some admins do unreasonable things. A nearby university rejects mail with a blacklisted IP anywhere in the headers, event the Subject!! A local government department adds spam points to mail with no Received: headers, or with a RFC1918 IP somewhere in the headers. (of course, they're the same guys who until recently choked on DKIM signatures.) You just can't win sometimes...

set in main.cf:
smtpd_sasl_authenticated_header = yes

and use a header check something like:
(all one line, beware wrapping)
/^Received: (.*by myserver.example.com \(Postfix\) with ESMTPS?A id.*)$/ REPLACE X-Submission: $1

Or better, to just rewrite the header on outgoing mail, use the above rule in smtp_header_checks rather than header_checks.


 -- Noel Jones

Reply via email to