Training, Open Source
computer languages


PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Processing email "bounce backs"

Posted by John_Moylan (jfp), 28 July 2004
Hello 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.

Thanks
jfp

Posted by admin (Graham Ellis), 28 July 2004
We 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 2004
Sounds like you need this...

http://search.cpan.org/~freeside/Mail-DeliveryStatus-BounceParser-1.4/BounceParser.pm

I expect you've been to CPAN already by now though?

B

Posted by John_Moylan (jfp), 29 July 2004
Two excellent responses, like I expect anything else form this forum.

Quote:
We use a mixture of procmail, spamassasin and Perl scripts
Are you still using the same ISP that we are

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

Custard, thanks
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
jfp



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.


WELL HOUSE CONSULTANTS LTD.: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho