Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to get reason statistics for all bounced emails from mail.log.

Which reason types exist?

share|improve this question
1  

1 Answer 1

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

 
discard

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.