How to parse Delivery Status Notifications emails bounced from Mailer Deamons

ぃ、小莉子 提交于 2020-01-06 15:49:56

问题


I'm trying to understand how to parse Delivery Status Notifications emails sent by Mailer Deamons when, for example, an email is sent to a non-existing mailbox or when to a full-of-space mailbox.

I had a look to the RFC3464 (http://www.ietf.org/rfc/rfc3464.txt), and to those questions:

  • Detecting if an email is a "Delivery Status Notification" and extract information - Python
  • Retrieve bounce notification / report in php
  • How to handle Delivery Status Notification of GMail
  • How to parse e-mail bounce notifications

What I can't understand is:

  • Are ALL Mailer Deamons out there respecting RFC3464?
  • I'm using PHP but I didn't really found a library to parse those emails; I think it's strange because I suppose that this is something not so new, I think others already had to do something like that in the past. Do you know some more resource I could take a look to?

How can I know all the possible errors that generate a bouncing email? How can I know ALL different formats of those emails so that I can write a proper parser?

What I need is:

  • Know if an email I sent with PHPMailer (smtp) encountered an error didn't arrive to recipient;
  • Know why.

Thank you.

来源:https://stackoverflow.com/questions/17172355/how-to-parse-delivery-status-notifications-emails-bounced-from-mailer-deamons

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!