Skip to content

Postfix and additional headers in log file

drlight17 edited this page May 25, 2024 · 2 revisions

To include Subject into postfix log file add to main.cf:

header_checks = regexp:/etc/postfix/header_checks

Then create file /etc/postfix/header_checks and add the following:

/^Subject:/ WARN

Restart postfix service.


To include TLS info into postfix log file in addtition to the above add the following to /etc/postfix/header_checks:

/^Received:/ WARN

Restart postfix service.

Then you will get lock icon in the addition info email modal:

image

Clone this wiki locally