Thank you.

Dne 24.08.2015 16:03, Viktor Dukhovni napsal:
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 have reloaded the daemon
        service postfix reload

The check is OK:
postconf -n header_checks
header_checks = pcre:/etc/postfix/header_checks

And tested via
postmap -fq "From: Joe User <joe.u...@example.com>"
pcre:/etc/postfix/header_checks
before sending email?

Wow! I am sorry, I didn't. It also works
postmap -fq "From: Joe User <joe.u...@example.com>" pcre:/etc/postfix/header_checks
WARN From: Joe User <joe.u...@example.com>
(I rewrote parenthesis in the rule to include whole pattern – also “From: ”)

I have default rsyslog configuration:
…
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages

# Log all the mail messages in one place.
mail.* -/var/log/maillog
…

I have looked for newest log files:
        ls -lt /var/log |head
and searched:
        grep -lsi user_name@ /var/log/*
but found nothing appropriate.

How to debug header_checks, please? How should the postfix warning message look like in log file?

Regards,
Hans

Reply via email to