Update 30 May 2022
Add utf-8 decode support. The guidance refer to this link: Decode Subject Email MIME Header RFC 2047
The tracing tools on Zimbra only display Message-ID, sender, and recipient. Many of our client or even me 🙂 need to know what the subject from an email that has been sending. A few days ago, my boss found the script that can display subject on zmmsgtrace.
The original script has been modified to display the subject. You can find modification script from here : https://github.com/imanudin11/script/blob/master/zmmsgtrace
Install dependencies
Ubuntu
apt-get install libencode-hanextra-perl -y
CentOS
yum install perl-Encode-HanExtra -y
To display the subject, you should enable subject information in the log as mentioned in this guidance :Â adding-subject-and-attachment-information-on-the-log-zimbra. Then, you can replace default zmmsgtrace. Perform the following command as root
cp /opt/zimbra/libexec/zmmsgtrace /opt/zimbra/libexec/backup.zmmsgtrace curl -k https://raw.githubusercontent.com/imanudin11/script/master/zmmsgtrace > /opt/zimbra/libexec/zmmsgtrace
The following is an example on my server
Message ID '2045709166.99.1541433231183.JavaMail.zimbra@imanudin.net' Subject 'Testing Subject on zmmsgtrace' admin@imanudin.net --> admin@imanudin.net Recipient admin@imanudin.net Nov 5 15:53:51 - myzimbra.imanudin.net (10.148.0.3) --> 127.0.0.1:10026 (127.0.0.1:10026) status sent Nov 5 15:53:51 - myzimbra --> myzimbra.imanudin.net:7025 (10.148.0.3:7025) status sent
Good luck and hopefully useful 🙂
Source : https://github.com/imanudin11/script
Excelent Post!!!!
Hello Mario,
Thanks 🙂
Thanks Brother …..
I’m having a login problem, please help me
warning: hostname mail.doamin does not resolve to address xx.xx.xx.xx
Dec 9 19:52:15 mail postfix/smtpd[122362]: connect from unknown[1xx.xx.xx.xx]
Hello,
You can check on mailbox.log or try to restart Zimbra services
Use of uninitialized value in concatenation (.) or string at ./zmmsgtrace line 605, line 525709.
Zimbra 8.8.12
Hello,
It’s normal if you receipt email from postmaster/bounce back. I am also get the same log
Is it possible to modify the message id? The application will be the one providing the message id?
Hi Richard,
Maybe yes. You can modify the message-id. But, i have not know how to do that
Hi, how to change this “JavaMail.zimbra” in message-id when I send a mail from web?
Hi Kevin,
You can try this guidance: https://wiki.zimbra.com/wiki/How_to_disable_various_headers
Halo Om,
Mau tanya, apa zmmsgtrace ini bisa untuk zimbra 10?
Hi mas,
Sangat bisa mas