Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
For 2023 - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
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.


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...

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


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

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

This page is a thread posted to the opentalk forum at and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2023: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: • WEB: • SKYPE: wellho