habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Postfix Log Add Email Subject

37 sec read

Basically, Zimbra and Postfix have fundamental similarities. Zimbra uses Postfix as the main engine Mail Transport Agent (MTA). So in this article it is not much different from how to add an Email Subject in Zimbra which I have been written before. In this post, i will explain easy add email subject in postfix log.

By default Postfix only capture ‘from’ and ‘to’ details in the log file (/var/log/maillog).

Step #1 Open main.cf Postfix Configuration

First, with our favourit editor, open postfix configuration.

vim /etc/postfix/main.cf

Add this line parameter header_checks.

header_checks      = regexp:/etc/postfix/header_checks

The result, like this. Focus just in line header_checks.

Step #2 Create file /etc/postfix/header_checks

vim /etc/postfix/header_checks

Add this line code.

/^Subject:/     WARN

And then, postmap.

postmap /etc/postfix/header_checks

Restart Service Postfix

Last step, restart postfix service.

systemctl restart postfix
postfix reload

Just it, a short article about add email subject in postfix log. I hope it is useful. Please feel free for comment.

habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Zimbra Relay Amazon SES

Zimbra is a widely used collaboration platform that provides robust email services. When it comes to improving email deliverability and ensuring the security of...
habibzain
1 min read

Install Zimbra 10 Ubuntu 20.04 from Scratch

Zimbra 10 may have had specific installation requirements, and there might be updates or changes beyond that point. Here is simple guide how to...
habibzain
4 min read

Zimbra Cannot start TLS: handshake failure

The Zimbra log show error message “Cannot start TLS handshake” typically indicates an issue with establishing a secure TLS (Transport Layer Security) connection. This...
habibzain
1 min read

Leave a Reply

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

Never miss good article from us, get weekly updates in your inbox