Skip to content

πŸ”Ž Logging subjects


Add a header check with a WARN disposition for subjects.

Edit /etc/postfix/header_checks. Add:

/^([Ss]ubject):/ WARN

Then update the database, postmap /etc/postfix/header_checks. Subjects will be logged by the cleanup daemon in /var/log/maillog.

Jan  8 12:06:35 jib postfix/cleanup[9584]: D833F2C1C5E: warning: header Subject: Earn a $25 statement credit after you spend $500 or more from[]; from=<> to=<> proto=ESMTP helo=<>