PHP - IMAP 测试电子邮件别名是否存在

发布于 2024-09-24 19:43:17 字数 311 浏览 2 评论 0原文

当从远程主机作为 IMAP 客户端登录时,是否有一种编程方法可以测试电子邮件别名是否存在,而不是发送电子邮件或必须解析邮件服务器上的别名文件?

它是一个 Postfix 邮件服务器。

编辑:我找到了一个通过 SMTP 进行电子邮件验证的示例,这看起来就像我需要的一样。但是,在我的服务器上,SMTP 不允许中继,并且我收到有效地址的 554。我想知道是否有一个像这样的示例,但对于需要身份验证的 SMTP 服务器?

Is there a programmatic way to test the existence of an email alias when logged in as an IMAP client from a remote host rather than sending an email or having to parse the aliases file on the mail server?

It is a Postfix mail server.

Edit: I found an example of email validation over SMTP and this looks like what I need. However on my server SMTP does not allow relays and I get a 554 for valid addresses. I'm wondering if there is an example like this one but for an SMTP server that requires authentication?

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

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

发布评论

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

评论(1

夏至、离别 2024-10-01 19:43:17

您可以检查服务器是否接受右侧 MX 上带有 fsockopen 的电子邮件地址的邮件,并检查 RCPT TO 是否被接受,但存在一些误报(代理盲目地接受域的任何内容并将其通过管道传输到公园中的其他服务器),以及漏报(灰色列表等)。如果 IMAP 协议有某种命令(我对此表示怀疑),我不知道。

You can check whether a server accepts mail for an email address with a fsockopen on the right MX, and check wether a RCPT TO is accepted, but there are some false positives (proxies which blindly accept anything for a domain and pipe it to others servers in the park), and false negatives (grey listing and the like). If there is some sort of command the IMAP protocol (which I doubt) I'm not aware of it.

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