Track messages sent and received by a user
Track messages sent and received by a user
Purpose
Track messages sent and received by a user
Resolution
'zmmsgtrace' can be used for this. This parses the logs by showing only the sender and receiver, and the time the email was sent.
Simply running '/opt/zimbra/libexec/zmmsgtrace' shows the logs for all the users.
Using '-s' shows all the emails sent by 'user@example.com' :
/opt/zimbra/libexec/zmmsgtrace -s user@example.com
'-r' sorts emails by the receiver. So for the emails sent to 'gmail.com':
/opt/zimbra/libexec/zmmsgtrace -r '@gmail.com'
If you have multiple log files, using '/var/log/zimbra*' will search all of the log files in that directory:
/opt/zimbra/libexec/zmmsgtrace -r '@gmail.com' /var/log/zimbra*
Additional Content
- Check the next Wiki article for a extended information about the useful zmmsgtrace CLI tool.