中继访问被拒绝,system.net.mail
我们有一个 aspx.net 站点,它使用外部托管的 Web 服务器向用户发送邮件。
这种方法多年来一直运行良好,每天发送 100-1000 封邮件,但最近用户开始报告他们没有收到邮件 - 有时他们收到所有邮件(2-100 封),有时只收到 40-60 封邮件%。
所有邮件的格式相同并具有相同的内容(除了一些动态字段,如姓名、密码等)。
我查看了错误日志,现在当邮件丢失时我看到此错误:
system.net.mail.smtpexception: transaction failed the server response was: <[email protected]> Relay access denied
任何反馈都会被采纳。
问候和快乐的编码, 托马斯
We have a aspx.net site which send out mail to users using a web server hosted externly.
This have been working perfectly for a couple of years sending 100-1000 mails pr day, but recently users have started to report that they do not recieve mails - some days they recieve all mails (2-100) and some days only 40-60%.
All mails are formatted equal and have the same content (except for some dynamic fields like name, password etc).
I've looked at my error log and now I see this error when mails are lost:
system.net.mail.smtpexception: transaction failed the server response was: <[email protected]> Relay access denied
Any feedback would be appriciated.
Regards and happy coding,
Thomas
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
“中继访问被拒绝”通常是因为邮件服务器无法识别发件人地址中的domain.tld 域,因此不会代表发件人发送邮件,或者是因为服务器需要未提供的 SMTP 身份验证。
"Relay access denied" is usually caused either because the mail server doesn't recognize the domain.tld domain in the senders address so wont send mail on their behalf, or because the server requires SMTP authentication which was not provided.
尝试中继邮件的服务器需要对 SMTP 发送的邮件进行身份验证。因此,请尝试使用域凭据发送邮件。
server which trying to relay message requires authentication from the mail which SMTP sent.So try to use domain credentials to send mail.
SMTP 服务器可以配置为在高负载下拒绝您的请求。
SMTP server can be configured to reject your requests under high load.