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.

How to Add Subject Zimbra Log

56 sec read

Email server logs serve as the backbone of effective system administration. By default, Zimbra mail server logs do not include email SUBJECTs in the logs. Therefore, we have to do tuning so that email SUBJECT can be read properly in the log. In this short article we will discuss How to Add Subject in Zimbra Log.

A log provides a comprehensive record of all email activity. And also offers knowledge about the sending and receiving status of emails. Whether mail status sent, bounce, reject, discard or something else.

Here is some step to add Subject in Zimbra log.

Create Custom Header Check to Add Subject.

As user Zimbra, create file custom_header_check.

su - zimbra
vi /opt/zimbra/conf/custom_header_checks

Add with following command.

/^Subject:/ WARN
/^subject:/ WARN
/filename=\"?(.*)\"?$/ WARN

Check the contents of the file with the ‘cat‘ command.

Zimbra Custom Header Check  Add Subject Zimbra Log

Put custom_header_checks into zimbraMtaHeaderChecks

zmprov ms `zmhostname` zimbraMtaHeaderChecks "pcre:/opt/zimbra/conf/postfix_header_checks, pcre:/opt/zimbra/conf/custom_header_checks"
zmprov mcf zimbraMtaBlockedExtensionWarnRecipient FALSE

Confirm with this command.

zmprov gs `zmhostname` zimbraMtaHeaderChecks
Zimbra custom header check

Reload Postfix

Last step, reload postfix for implementation change configuration.

postfix reload

Testing Sending Email

To see what change in zimbra log, we can test sending email. and look out zimbra log.

Dec 6 21:18:34 mail postfix/cleanup[1659873]: 7CCC242AE43: warning: header Subject: Test from mail-pl1-f172.google.com[209.85.214.172]; [email protected] [email protected] proto=ESMTP helo=

That is short article How to Add Subject in Zimbra Log. I hope it is useful. Please feel free for comment

credit: imanudin.net

See also  Postfix Log Add Email Subject
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