Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

At now I mainly create a mail account separately (with different domain name and i add this mail as one return path. So the bounce message will only go to that mailbox and i parse the mail message one by one to check the failure receipent and the error code, then i convert the error code to the actual error message.

Finally, the error message and the fail receipent's mail are post to my system and let my system user check the bounce information.

Is it a common practice? Since i am worry about the mail other from bounce message have sent to my mail box, that would be a disaster if i parse them without filter them out, but how can i filter out between bounce message and normal mail?

Thank you for any kind of help.

share|improve this question
Thanks for editing – Leo Chan Mar 17 '12 at 16:24
If you're talking about sending out mass emails, a lot of people use a paid provider to do this kind of thing for them. – LachlanB Mar 18 '12 at 6:13
Thanks.Without paying what is the best way to do it? – Leo Chan Mar 19 '12 at 2:03

If you want to be sure that the mail you are filtering is truly a bounce back then include some sort of identifying information in the email that you can verify before you notify users. This could be something like a reference number. With this reference number you can match it up with other information you already have, like time sent and to whom, to further verify the bounced email.

share|improve this answer
The Message-ID header might be of use here. – Jeremy Heiler Mar 21 '12 at 20:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.