Enable “Subject:” logging in Postfix

Edit the Postfix’s main.cf file and add the following line (or uncomment it):

header_checks = regexp:/etc/postfix/header_checks

Create /etc/postfix/header_checks file and add the following line:

/^subject:/ WARN

Finally, reload/restart Postfix. From now on there will be a “warrning: header subject” in your maillog.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.