[ILUG] A script to extract email addresses from Delivery Failure messages

Kieran O'Sullivan Kieran.OSullivan at Bluewave.ie
Wed Mar 30 23:31:18 IST 2011


Hi
I have a bunch of delivery failures which I want to extract the failed 
e-mail addresses from.  My problem is that every mail server sends a 
different message back.
Has anyone got a script (php would be nice) that can read a file e.g. 
/var/mail/<username> and extract the e-mail addresses of the permenant 
failed addresses?

I understand the principle behind this it is just string searching my 
problem is all the combinations of strings to search for.

Thanks.
 






More information about the ILUG mailing list