Mailbox unavailable. The server response was: 5.4.1 Relay Access Denied
I am getting "Mailbox unavailable. The server response was: 5.4.1 Unable to relay for myemail@mydomain.com" when I try to send the mail using C# code.
Then I tested my smtp server here.
Here when I enter my smtp server, sender and recipient name. I got followoing message:
MAIL FROM: mymail@mydomain.com
SMTP -> FROM SERVER:
250 2.1.0 Sender OK
RCPT TO: anothermail@mydomain.com
SMTP -> FROM SERVER:
550 5.4.1 Relay Access Denied
SMTP -> ERROR: RCPT not accepted from server: 550 5.4.1 开发者_Go百科Relay Access Denied
Message sending failed.
That's a config issue in the mail servier. It doesn't allow you (your IP, your sender address) to send mail to the recipient.
A properly configured mail server is extremely restrictive with relaying, to prevent it from being abused by spammers to send mails.
Yes this is a Mail Server Configuration issue. We need to change few code for this. Can you please see my answer from below URL.
URL: Click here
精彩评论