Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: CmdLn on September 10, 2015, 08:32:25 AM

Title: Email Message Tracking
Post by: CmdLn on September 10, 2015, 08:32:25 AM
How can I track an email message? Specifically how can I tell if/when it arrived and when it was delivered to the users mailbox?
Title: Re: Email Message Tracking
Post by: stephdl on September 10, 2015, 09:41:50 AM
See the /var/log/qpsmtpd/current log
Title: Re: Email Message Tracking
Post by: mmccarn on September 10, 2015, 01:17:47 PM
The header of an email message contains a record of the servers that the message has passed through - examining the email in question should tell you quite a bit.

Here's an article with more detail:
https://www.arclab.com/en/kb/email/how-to-read-and-analyze-the-email-header-fields-spf-dkim.html

The qpsmtpd log files would also give you information on messages that had been blocked by your server for whatever reason (the sending server is listed on an RBL, or spamassassin is convinced that the message was junk, etc).  If necessary, the qpsmtpd logs could be used to confirm that the message you're examining hasn't been intentionally manipulated after receipt.
Title: Re: Email Message Tracking
Post by: CmdLn on September 11, 2015, 11:04:33 AM
I was able get some info about the message from a specific sender with this command in /var/log/qpsmtpd

grep "RCPT TO:<recipient@my.domain>" * -B 4 -A 10 | grep -A 15 "MAIL FROM:<address@senders.domain>" | tai64nlocal