如何解析电子邮件退回通知
我必须使用哪些选项来解析退回的电子邮件?我收到来自电子邮件服务器的退回通知,但不知道该如何处理。
What options do I have to parse the e-mails that have bounced? I am receiving the bounce notification from e-mail servers but don't know what to do with it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有一个可用于 perl 的反弹解析库:
http://metacpan.org/pod/Mail ::DeliveryStatus::BounceParser
there is a bounce parsing library available for perl:
http://metacpan.org/pod/Mail::DeliveryStatus::BounceParser
我不确定您的设置,但如果您有权访问您的邮件服务器,您可以将这些消息通过管道传送到服务器上的脚本,该脚本会解析这些电子邮件,然后您可以根据该脚本做出一些决定,例如将电子邮件地址标记为无效或数据库中的某些内容,并且不再发送任何电子邮件。
I am not sure about your setup but if you have access to your mail server , you can
pipe
these messages to a script on your server, which parses these emails and then you can take some decision based on that, for instance flag the email address as invalid or something in your database and not sending any more emails.我知道这个问题很老了,但也许它可以帮助其他人。
我找不到解决方案,所以我自己做了。它从 IMAP 帐户获取邮件并对它们进行分类。它可以将结果数据发布到远程 http(s) 端点或仅发布到简单的 csv 文件。
» Bouncefetch
免责声明:我是bouncefetch的作者。
I know this question is old but maybe it can help others.
I couldn't find a solution so I made my own. It fetches the mails from an IMAP account and classifies them. It can post the resulting data to a remote http(s) endpoint or just to a simple csv file.
» Bouncefetch
Disclaimer: I'm the author of bouncefetch.