Server Fault is a question and answer site for system and network administrators. 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

I'm working on building a feature for a larger system that will be able to parse and react to dsn bounce messages received from all different types of smtp servers.

It be great to test the code I write by reading a bunch of txt files containing examples of the types of bounce messages that might be encountered out in the wild ;-)

Anyone have any suggestions on where to find a bunch of test dsn messages lying around? Or any thoughts on how to create some good test data?

UPDATE: I found a ton of good test data inside this project:

share|improve this question
Send out messages to made-up users at domains chosen at random... – Ward Feb 24 '12 at 6:10
Thanks @Ward, I've been doing this and it's working pretty well. – Dave Paroulek Feb 24 '12 at 16:41
Feel free to accept and/or upvote now that I made the comment an answer... :) – Ward Feb 24 '12 at 17:31
up vote 2 down vote accepted

(The comment was somewhat flippant, but it's what I'd do. Since you say it's working, I thought I'd make it an actual answer.)

Send out messages to made-up users at domains chosen (almost) at random. You could use:

  • big companies (Google, MS, etc.)
  • companies that friends work at (slightly mis-type their names)
  • companies/domains that you have any email from

In order to get a responses from a range of mailers, you'll have to look at headers of all your existing email messages and see what other people are using.

share|improve this answer
Thanks, @Ward. Yeah, this is the first time I've dug this deep under the hood of how email works and so just wondering if there might be something I was missing. But this seems like the best/most obvious solution. I think I was over-thinking it. – Dave Paroulek Feb 24 '12 at 20:26

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.