On Mon, Aug 24, 2015 at 03:53:24PM +0200, Hans Ginzel wrote: > >If it is a few users, use header_checks. If it is many users, > >use a Milter (available in Python, Perl, C). > > Thank you. > > Few users. I added > header_checks = pcre:/etc/postfix/header_checks > to /etc/postfix/main.cf.
And tested that it is set? (Hint: "postconf -n header_checks"). And made sure that header_checks has no overrides in the relevant master.cf cleanup entry? > I added into /etc/postfix/header_checks > /^From(.*)/ WARN $1 And tested via postmap -fq "From: Joe User <joe.u...@example.com>" pcre:/etc/postfix/header_checks before sending email? > I sent some e-mails, looked in /var/log/maillog, found messages like > "(delivered to mailbox)", "removed"; but did not find any warning > messages. Where they were gone, please? Check your syslog configuration. -- Viktor.