Processing email "bounce backs"
Posted by John_Moylan (jfp), 28 July 2004Hello All
Anyone have any thoughts/pointers on processing email.
I have emails which I can get via POP3 or straight from '/var/spool/mail'
I'd like to parse each individual email and grep for the status/return code to see if there was a soft bounce (mailserver down?) or a hard bounce (user or domain does not exist)
Before I begin the first line of code I'm about to search the CPAN (I *think* Perl would probably be best for this task) and wondered if anyone had done something similar or could point straight to a module.
Posted by admin (Graham Ellis), 28 July 2004We use a mixture of procmail, spamassasin and Perl scripts - the first two to do a lot of the standard stuff, and perl scripts within procmail to look at the "unsure" cases in a bit more depth. In each of these cases, the filtering and any re-routing or /dev/nulling is done before the mail hits the mailbox on the server.
Ar you still using the same ISP that we are / do you have the ability to pre-process stuff in that way?
Posted by Custard (Custard), 28 July 2004Sounds like you need this...
I expect you've been to CPAN already by now though?
Posted by John_Moylan (jfp), 29 July 2004Two excellent responses, like I expect anything else form this forum.
This is for work rather than personal so its a differnent host, but I do have root so I'll be searching out a few procmail recipes to help routing the mail
I had searched CPAN, though obviously no well enough, that one passed me by.
I did a search on "email" and started from there, now searching on "email bounce" brings your recommendation up first time....doh!
Thanks all, I'll have fun playing today
This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: firstname.lastname@example.org • WEB: http://www.wellho.net • SKYPE: wellho