Mailbox unavailable. The server response was: 5.7.1 Unable to relay for abc@xyz.com(信箱不可用.服务器响应为:5.7.1 无法为 abc@xyz.com 中继)
问题描述
当我尝试使用 ASP.NET 发送邮件时,我收到邮箱不可用.服务器响应为:5.7.1 无法中继 abc@xyz.com".该站点部署在IIS7、Windows 2008服务器上.
I am getting "Mailbox unavailable. The server response was: 5.7.1 Unable to relay for abc@xyz.com" when I try to send the mail using ASP.NET. The site is deployed on IIS7, Windows 2008 server.
网站在 IIS6 和 Windows 2003 Server 上运行良好.我将它部署在 IIS7 上,2008 年它开始给我这个错误.
The website was working fine on IIS6 and Windows 2003 Server. I deployed it on IIS7, 2008 it has started giving me this error.
以前有人经历过吗?
推荐答案
啊,明白了...我成功了 :)
Aahh got it... I got it working :)
感谢克里斯托弗,您的建议是正确的.
Thanks Christopher, your suggesion is correct.
但是,找到默认 SMTP 虚拟服务器"很棘手;)
But, finding "Default SMTP Virtual Server" was tricky ;)
即使你使用 IIS7 来部署你的网站,你也必须打开 IIS6 管理器来配置 SMTP 服务器(为什么?).
Even if you use IIS7 to deploy your web site, you have to open IIS6 Manager to configure SMTP server (why?).
我如下配置了 SMTP 服务器以使其正常工作:
I configured SMTP server as follows to make things work:
- 使用控制面板打开 IIS6 管理器 --> 管理工具.
- 打开 SMTP 虚拟服务器属性.
- 在常规选项卡上,设置 IP 地址Web 服务器而不是所有未分配".
- 在访问选项卡中,单击中继按钮,这将打开继电器限制对话框.
- 在中继计算机列表中,添加环回 IP 地址,即 127.0.0.1和 Web 服务器的 IP 地址,以便他们可以通过 SMTP 服务器传递/中继电子邮件.
这篇关于信箱不可用.服务器响应为:5.7.1 无法为 abc@xyz.com 中继的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:信箱不可用.服务器响应为:5.7.1 无法为 abc@xyz.com 中继


- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- 输入按键事件处理程序 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01