Postfix amavisd-new header cleaning

Serge van Ginderachter serge at vanginderachter.be
Sat Apr 11 07:36:08 UTC 2009


> Received: from localhost (localhost [127.0.0.1])
> 	by localhost.localdomain (Postfix) with ESMTP id B265928449AA
> 
> I have tried to put header_checks=regexp:/etc/postfix/header_check.cf
> in main.cf, in cleanup section in smtp-amavis and in 127.0.0.1:10025
> with no success....

I have a line like this as a header check:
 ( postconf -e header_checks=regexp:/etc/postfix/regexp.header-checks )


 /^Received: from localhost \(localhost \[127\.0\.0\.1\]\)/ IGNORE

And this works like a charm.


 Serge




More information about the ubuntu-server mailing list