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 need to get reason statistics for all bounced emails from mail.log.

Which reason types exist?

share|improve this question

A "Bounce" message is just a normal email message, with the distinction that it was forwarded to the originating address in response to a failure condition somewhere in the delivery path; furthermore, the intervening mail hosts were unable to rectify this failure condition, hence the message is returned to the sender as undeliverable.

A bounce is neither a status, nor a failure reason.

Your own mail server log will only contain a possible reason if your mail server was responsible for generating the bounce message.

share|improve this answer
...and just to clarify, then content of the email is not a standard / parsable format. – symcbean Feb 29 '12 at 15:57
But if you have a feeling of the kind of bounces that you get, and you already know that they can be divided in n categories, you may be able to write a program that can classify bounces that you receive in those n categories. Of course this way you may miss a n+1 category that may appear later and handling MIME and bounces in different languages can be a mess. But if such messages are a small percentage it may work. – adamo Mar 1 '12 at 6:41

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.