I reviewed the answer to the following question and found it very useful. However, I have another question regarding the behavior of SMTP servers. Mailbox Unavailable and Relay Configuration
Scenario: I have two smtp servers that I do not have access to, for example, credentials. When sending email from 1 server, I get the following error:
Mailbox not available. Server response: 5.7.1 Failed to transmit
Type: System.Net.Mail.SmtpFailedRecipientException:
Source: system
Stack trace: on System.Net.Mail.SmtpTransport.SendMail (sender MailAddress, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException & exception) with System.Net.Mail.SmtpClient.Send (MailMessage message)
very clear, i.e. smtp server could not send the message. However, on another server, the SendEmail method did not throw any exceptions, but I received a Mailer Daemon email message stating that:
This is the mail system in the host test. relay .host.name.changed.
I apologize to inform you that your message could not be delivered to one or more recipients. It is attached below.
For more help, send an email to postmaster.
If you do, include this issue report. You can remove your own text from the attached returned message.
Mail system
test1.test2@hotmail.com: host mx3.hotmail.com [xx.xx.xx.xxx] said: 550 Requested actions are not accepted: the mailbox is unavailable (in response to the RCPT TO command)
Question:
- Why different behavior? that is, in one case, I get the daemon mailer, while in the other exception in the SendEmail method?
Besides,
- Specifically, how do daemon mail messages work? Because according to the second message, it looks like it was a relay sent by him.
- If this is a configuration difference, then what is it?
Syed osama maruf
source share