Track messages sent and received by a user

1. tentukan alamat email si pengirim.
contoh : email dari riaaspan@gmail.com, ke kabul.dedi@aclient.com. hari ini.

2. cari queue ID email yang akan di cek.

cara simple cek di log.

grep ’email-pengirim’ /path-lokasi-file-log
grep ‘riaaspan@gmail.com’ /var/log/maillog

3. cara trace email berdasarkan pengirim
/opt/zimbra/libexec/zmmsgtrace -s nama-email-pengirim

4 cara trace email berdasarkan penerima
/opt/zimbra/libexec/zmmsgtrace -r nama-email-penerima

Purpose

Track messages sent and received by a user

‘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*

Leave a comment