Microsoft CRM Email Troubles
An email asking for help on a problem floated by me and I thought it was interesting enough to blog about. First of all, I had the following error message from the Microsoft Dynamics 365 CRM Exchange router:
#61042 - An error occurred while processing the outgoing e-mail message with subject "CRM ADMIN TEST MAIL CRM:0004015" for SMTP: http://crmserver/tenant/ for delivery through exchangeserver. System.Net.Mail.SmtpException: Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender.
The guy asking the question was trying to figure out what was wrong with CRM because that’s where the error was coming from. The problem is that he was looking in the wrong place. If you read the error carefully, the most important part is the last bit:
The server response was: 5.7.1 Client does not have permissions to send as this sender.
It actually states that the server (not CRM, but Exchange) responded with the client not having permissions to send. This is a fairly common issue, and the resolutions fall into one of two options:
- The email address in the From field can’t be used because you don’t have permission to use it (obviously), and you merely need to change the address to one you do have permission to use.
- The second option is to enable SMTP authentication, which should give you the permissions to send mail.