用于解析发现退回邮件的 SMTP 日志的工具 [英] Tool for parsing SMTP logs that finds bounces

查看:18
本文介绍了用于解析发现退回邮件的 SMTP 日志的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的网络应用程序发送电子邮件.我们有很多用户,我们收到很多反弹.例如,用户更换公司,他的公司电子邮件不再有效.

Our web application sends e-mails. We have lots of users, and we get lots of bounces. For example, user changes company and his company e-mail is no longer valid.

为了查找退回邮件,我使用日志解析器解析 SMTP 日志文件.日志来自 Microsoft SMTP 服务器.

To find bounces, I parse SMTP log file with log parser. The logs come from Microsoft SMTP server.

有些反弹很棒,例如 550+#5.1.0+Address+rejected+user@domain.com.弹跳中有user@domain.com.

Some bounces are great, like 550+#5.1.0+Address+rejected+user@domain.com. There is user@domain.com in bounce.

但有些错误信息中没有电子邮件,例如550+No+such+recipient.

But some do not have e-mail in error message, like 550+No+such+recipient.

我创建了一个简单的 Ruby 脚本来解析日志(使用日志解析器)来查找导致类似 550+No+such+recipient 的邮件.

I have created simple Ruby script that parses logs (uses log parser) to find which mail caused something like 550+No+such+recipient.

我很惊讶我找不到可以做到这一点的工具.我找到了像 Zabbix 和 Splunk 这样的工具来进行日志分析,但对于这样简单的任务来说,它们看起来有点过头了.

I am just surprised that I could not find a tool that does it. I have found tools like Zabbix and Splunk for log analysis, but they look like overkill for such simple task.

有人知道一种工具可以解析 SMTP 日志、查找退回邮件和导致退回邮件的电子邮件吗?

Anybody knows a tool that would parse SMTP logs, find bounces and e-mails that cause them?

推荐答案

这个 article 正是您正在寻找的.它基于伟大的工具 日志解析器.

This article is exactly what you are looking for. It is based on the great tool log parser.

日志解析器是一个功能强大、用途广泛的提供通用查询的工具访问基于文本的数据,例如日志文件、XML 文件和 CSV 文件,如以及关键数据源Windows® 操作系统,例如事件日志、注册表、文件系统和 Active Directory®.你告诉 Log Parser 你有什么信息需要以及您希望如何处理它.您的查询结果可以是在基于文本的输出中自定义格式,或者他们可以坚持到更多特殊目标,如 SQL、SYSLOG 或图表.大多数软件旨在完成有限数量的具体任务.日志解析器是不同......它可以的方式数量使用仅受需求限制和用户的想象力.这world 是您的数据库,带有 Log解析器.

Log parser is a powerful, versatile tool that provides universal query access to text-based data such as log files, XML files and CSV files, as well as key data sources on the Windows® operating system such as the Event Log, the Registry, the file system, and Active Directory®. You tell Log Parser what information you need and how you want it processed. The results of your query can be custom-formatted in text based output, or they can be persisted to more specialty targets like SQL, SYSLOG, or a chart. Most software is designed to accomplish a limited number of specific tasks. Log Parser is different... the number of ways it can be used is limited only by the needs and imagination of the user. The world is your database with Log Parser.

这篇关于用于解析发现退回邮件的 SMTP 日志的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆