我已经通过对下面的问题的答案,并发现它非常有帮助。但是,我对smtp服务器的行为有不同的问题。 Mailbox unavailable 和Relay configuration服务器响应是:5.7.1无法中继/邮件服务器守护进程
情景: 我有我没有访问,即只凭据两个SMTP服务器。在发送来自1台服务器的电子邮件时,我收到以下错误:
Mailbox unavailable. The server response was: 5.7.1 Unable to relay
Type: System.Net.Mail.SmtpFailedRecipientException:
Source:System
Stack Trace: at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message)
非常清楚,即smtp服务器无法中继该消息。然而,其他服务器上的SendEmail方法没有抛出任何异常,但我收到了梅勒守护电子邮件消息,指出:
This is the mail system at host test.relay.host.name.changed.
I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can delete your own text from the attached returned message.
The mail system
[email protected]: host mx3.hotmail.com[xx.xx.xx.xxx] said: 550 Requested action not taken: mailbox unavailable (in reply to RCPT TO command)
问:
- 为什么不同的行为?即在一种情况下,我收到邮件程序 守护程序消息,而在其他SendEmail方法中的例外?
此外,
- 具体而言如何邮包守护进程消息工作?因为按照第二条消息 ,似乎它是发送它的中继。
- 如果这是一个配置差异,那么它们是什么?
如果您发送电子邮件到e xisting电子邮件地址 - 两台服务器的行为方式相同? – Evk
@Evk是的,他们这样做。 –
您是否将电子邮件发送到hotmail帐户?发件人帐户也是Hotmail的呢? –