no send emails found and zmmsgtrace: total unmatched entries in 'zimbra.log'

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
SageMajor
Posts: 6
Joined: Tue Sep 09, 2014 10:14 am

no send emails found and zmmsgtrace: total unmatched entries in 'zimbra.log'

Post by SageMajor »

I am using the script mail_summary.sh found on this site and it is saying that no users have sent mail with I know is wrong. I get error messages
zmmsgtrace: use -debug to see unmatched lines
root@mail4:/opt/DMR/scripts/mail_summary# vim zimbra.log

here is a sample command

root@mail4:/# /opt/zimbra/libexec/zmmsgtrace /var/log/zimbra.log -r "sage@domain.com" --time "20181127,20181128"
Tracing messages
to sage@domain.com
during window (start,end) 20181127,20181128

Code: Select all

zmmsgtrace: total unmatched entries in '/var/log/zimbra.log': 269
zmmsgtrace: use -debug to see unmatched lines
G
zmmsgtrace: total files to read: 1
zmmsgtrace: reading '/var/log/zimbra.log'
zmmsgtrace: NO match: Nov 29 06:42:00 mail4 amavis[18145]: (18145-04) Passed CLEAN {RelayedInternal,RelayedOutbound}, ORIGINATING/MYNETS LOCAL [199.21.152.245]:60268 [199.21.152.245] <mario.flores@domian.com> -> <adriana.cabrera@domian.com>,<csaravia@domian.com>,<jorge.chavez@domian.com>,<jose.sandoval@domian.com>,<mario.flores@domian.com>,<robert.rivas@domian.com>,<NBConformingRequest@customerdomain.biz>,<twclsr@customerdomain.biz>, Queue-ID: D6286D419FB, Message-ID: <1617035490.650330.1543502519844.JavaMail.zimbra@domian.com>, mail_id: 6jLcelU3Gtga, Hits: -, size: 7951, queued_as: 0C4CED419F9, 218 ms


What are unmatched lines, and how do I resolve this so that I can see how many emails were actually sent
lytledd
Outstanding Member
Outstanding Member
Posts: 536
Joined: Sat Sep 13, 2014 12:54 am
ZCS/ZD Version: Release 9.0.0.ZEXTRAS.20221203 FOSS

Re: no send emails found and zmmsgtrace: total unmatched entries in 'zimbra.log'

Post by lytledd »


I am using the script mail_summary.sh found on this site and it is saying that no users have sent mail with I know is wrong. I get error messages
zmmsgtrace: use -debug to see unmatched lines
Actually, that's not an error. That's telling you there are 269 entries in that log and there were no matches. The -r on your command line means received, you'll want to use the -s for sent.

You'll also want to include more logs then just the base /var/log/zimbra.log, since that log rotates often. Try it with zimbra.log.1.gz and zimbra.log.2.gz

Doug
Post Reply