Eduardo Júnior wrote:
Hi,

i'm trying remove some headers from outgoing messages.
I read in somewhere that this is enough:


 -o header_checks=regexp:/etc/postfix/checks_headers

Where'd you read this misinformation?
The header_checks parameter is only used by the cleanup daemon.

With header_checks, some choices are to add it to main.cf and remove matching headers from all mail, define a separate cleanup service for the after amavisd smtpd reinjection, or use multiple postfix instances with different header_checks.

But if you have postfix 2.5 or newer, the easy solution is
http://www.postfix.org/postconf.5.html#smtp_header_checks
which can be added as a -o option to your outgoing smtp transport.


checks_headers:
^Received: from amavis IGNORE
...

proper form would be
/^Received: from amavis/  IGNORE

but you should really make it more specific than this so it only matches YOUR headers, and not everyone who uses amavis.



I'd like some references about this subject.
And references about debug level of the daemons (smptd, cleanup, qmgr...)
I have tried add -v options to cleanup line in master.cf, mas i didn't
understand what's going on there.

You'll need to examine the source code for details of what verbose logging means. Verbose logging is rarely needed for debugging postfix problems, and is not formally documented.

  -- Noel Jones

Reply via email to