Track / Retrieve Email Messages from Postfix Mail.log Files to File

Mindwatering Incorporated

Author: Tripp W Black

Created: 02/27/2015 at 12:14 PM

 

Category:
Linux
Mail

Issue:
Need to confirm delivery of e-mails to mailbox. However, Postfix doesn't have a message tracking screen like IBM Notes and MS Outlook do.
However, it's pretty simple to pull out the e-mails to a particular user to / from a file and then scan it.

Solution:
This solution uses cat, grep, and the > symbot to write a file. At that point we just SSH'd into our server retrieved the file and confirmed the deliveries.

$ sudo cat mail.log | grep "orig_to=<someone@mindwatering.com>" > deleteme.log


previous page

×