使用 Postfix 进行电子邮件发件人身份验证

发布于 2024-08-07 10:18:49 字数 1539 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

甜点 2024-08-14 10:18:49

不幸的是,Postfix 不是本地支持 SPF 的邮件服务器之一,但是有一些扩展和补丁,可以在 http://www.openspf.org/Implementations

虽然有一个可用于 SPF 的 Java 库,但我不知道当前有任何插件或补丁正在使用它。

Unfortunately Postfix is not one of the mail servers that suppose SPF natively, but there are some extensions and patches for this, which can be found at http://www.openspf.org/Implementations.

While a java library is available for SPF, I'm not aware of any plugins or patches that are currently using it.

千寻… 2024-08-14 10:18:49

我遵循的解决方案如下:

我将 Postfix 附加组件列表中提供的 DKIM 和 SenderID milters 附加到我的 Postfix 电子邮件服务器。

由于这些 milters 可以配置为在收到的邮件中添加有关其结果的电子邮件标头,因此我使用 jilter api(java 邮件过滤器 api)编写了一个自定义邮件过滤器,解析了邮件标头,因此我能够确定和根据我自定义的逻辑处理SPF和SenderID的认证结果。

The solution I followed is as:

I attached the DKIM and SenderID milters available from Postfix add-ons list with my Postfix e-mail server.

Since these milters can be configured to add e-mail headers in the received mails about their results, so I wrote a custom mail-filter using jilter api (java mail filter api), parsed the mail headers and hence I was able to determine and act about the authentication results of SPF and SenderID according to my custom logic.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文