Til Schubbe wrote:
* On 05.03. Noel Jones muttered:

The solution is to define an alternate cleanup service for "submission",
and then define alternate header_checks for that cleanup

I have a similar problem like the OP: I want to delete a header only
if a mail is delivered non-locally.

So I tried to tell smtp to use another cleanup service, but the
header is still not stripped off:


/etc/postfix/master.cf:
smtp    unix    -       -       -       -       -       smtp
  -o cleanup_service_name=cleanup_out
cleanup_out  unix       n       -       -       -       0 cleanup
  -o header_checks=pcre:/etc/postfix/header_checks

Wrong tool.  Cleanup processes on input, not output.

http://www.postfix.org/postconf.5.html#smtp_header_checks
This feature is available in postfix 2.5 and later.

  -- Noel Jones

Reply via email to