推荐一个可扩展的 SMTP 服务器
我遇到了这种奇怪的情况,我必须接受来自用户的电子邮件。我希望能够拦截传入的 SMTP 消息,查看它是否经过身份验证(自己检查用户名/密码并根据我的用户数据库检查这些内容),然后完整解析该消息并执行某些操作(在我的应用程序中记录一个帖子,例如例子)。我需要有人帮我处理繁重的工作,处理 SMTP 协议、传输加密等,然后让我处理其余的事情。
我的问题是,我找不到可扩展的 SMTP 服务器,它可以让我插入其处理管道,也可以将其嵌入到我的应用程序或服务中。你认识一个吗?我喜欢用 C# 编写 SMTP 逻辑,但我可以考虑其他选项,例如外部管道程序、COM 对象、在 Mono 下的 Unix 系统上运行等。
I have this weird situation where I have to accept email from my users. I want to be able to intercept an incoming SMTP message, see if it's authenticated (inspect the username/password myself and check those against my user database), then parse the message in full and do something (log a post in my application, for example). I need somebody to do the heavy lifting for me and take care of the SMTP protocol, transport encryption, etc and let me take care of the rest.
My problem is that I can't find an extensible SMTP server that will either let me plug into its processing pipeline or maybe embed it in my application or service. Do you know one? I'd love to program the SMTP logic in C#, but I can consider other options like external pipe programs, COM objects, running on a Unix system under Mono, etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Neokernel Web 服务器 中包含一个 SMTP 包,可以满足您的需求。
API 文档在线位于 http://www.neokernel.com/nk_docs/index.html,查看 com.neokernel.email 包了解详细信息。
There is an SMTP package included as part of the Neokernel Web Server that may address your needs.
The API documentation is online at http://www.neokernel.com/nk_docs/index.html, look at com.neokernel.email package for details.