Who have you delivered mail to?

The company I work for (Absorbent Ink) that makes corporate gifts and other personalized products. has started sending out a newsletter. Part of this newsletter process for me has been tuning one of our exim based mail servers.

One of our mailer scripts failed the other day. Unfortunately it was not logging properly and did not handle the error and continue to send to our news letter recipients. I had to check the exim logs to figure out who had actually recieved the newsletter from us.

This one liner will check your current exim mainlog and print out all the emails that have been delivered from [email protected]

eximstats -show_dt -byemail -t_remote_users /var/log/exim_mainlog | grep -A 1 [email protected] | grep -v [email protected] | grep -o ][[:space:]][[:graph:]]*@[[:graph:]]* | grep -o [[:graph:]]*@[[:graph:]]*

No Comments

Leave a Reply

Your email is never shared.Required fields are marked *

To submit your comment, click the image below where it asks you to...
Clickcha - The One-Click Captcha