Difference between revisions of "CentOS 8.x postfix log email Subject in maillog"

From Notes_Wiki
(Created page with "<yambe:breadcrumb self="log email Subject in maillog">CentOS 8.x postfix|postfix</yambe:breadcrumb> =CentOS 8.x postfix log email Subject in maillog= To log email subjects in...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb self="log email Subject in maillog">CentOS 8.x postfix|postfix</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x email servers]] > [[CentOS 8.x postfix]] > [[CentOS 8.x postfix log email Subject in maillog]]
=CentOS 8.x postfix log email Subject in maillog=


To log email subjects in maillog (Very useful during troubleshooting) use:
To log email subjects in maillog (Very useful during troubleshooting) use:
Line 20: Line 19:
Refer:
Refer:
* https://www.linuxtechi.com/log-email-subject-maillog/
* https://www.linuxtechi.com/log-email-subject-maillog/
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x email servers]] > [[CentOS 8.x postfix]] > [[CentOS 8.x postfix log email Subject in maillog]]

Latest revision as of 03:02, 30 March 2022

Home > CentOS > CentOS 8.x > CentOS 8.x email servers > CentOS 8.x postfix > CentOS 8.x postfix log email Subject in maillog

To log email subjects in maillog (Very useful during troubleshooting) use:

  1. Edit /etc/postfix/main.cf and uncomment below line:
    header_checks = regexp:/etc/postfix/header_checks
  2. Edit /etc/postfix/header_checks and append
    /^Subject:/ WARN
  3. Run postmap and restart postfix
    postmap /etc/postfix/header_checks
    systemctl restart postfix
  4. Look at /var/log/maillog for subject in the logs

Refer:



Home > CentOS > CentOS 8.x > CentOS 8.x email servers > CentOS 8.x postfix > CentOS 8.x postfix log email Subject in maillog