email builder: > Hello, > > I am testing a simple header_check that uses PREPEND to add a custom header > to > messages. > > 1) I *always* want to add the header, so the detected header in the rule > doesn't > matter so much. Does anyone have advice for the best header to detect so I > won't miss any messages? Is /^From:/ the best? Or maybe /^Date:/ ....? > > Anyhow, my PREPEND is working fine as a header_check in main.cf, but when I > put > it in master.cf in a smtpd listener that picks up mail from my content > filter, > it seems to be ignored completely.
According to header_checks(5) this is implemented by the cleanup server. header/body_checks are documented as parameters on the cleanup(8) manpage. They are not documented as parameters on the smtpd(8) manpage. All this confirms that header/body_checks are a cleanup(8) feature, not an smtpd(8) feature, Meaning, it's pointless to specify this on the smtpd(8) command line. Wietse HEADER_CHECKS(5) HEADER_CHECKS(5) NAME header_checks - Postfix built-in content inspection ... DESCRIPTION This document describes access control on the content of message headers and message body lines; it is implemented by the Postfix cleanup(8) server before mail is queued. See access(5) for access control on remote SMTP client information.