Dne 24.08.2015 12:45, wie...@porcupine.org napsal:
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.

I ran
postmap pcre:/etc/postfix/header_checks
postmap: fatal: unsupported map type: pcre

Based on http://comments.gmane.org/gmane.mail.postfix.user/184149 I realised there is not need to run postmap. Feature requets: The error message could be explicit: "postmap: info: There is no need to run postmap on types: pcre, regexp."

I added into /etc/postfix/header_checks
        /^From(.*)/ WARN $1

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?

Regards,
Hans

Reply via email to