Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Unable to send Mail - CRM 2016 Email Configuration

Posted on by 5

I am getting below error while trying to Test and Enable mailbox

ActivityId: 6d07fe4b-6032-4934-b1cd-1bc6823859d7
>Error : System.Net.Mail.SmtpException: Bad sequence of commands. The server response was: you must authenticate first (#5.5.1)
at System.Net.Mail.SendMailAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpClient.SendMailCallback(IAsyncResult result)

Can someone help  ?

  • Rjbcs Profile Picture
    Rjbcs 5 on at
    RE: Unable to send Mail - CRM 2016 Email Configuration

    Hi

    I have verified the Exchange's incoming and outgoing addresses and their ports are set correctly , I can Telnet to the ports from the server and its working . Also verified that Mailbox credentials are valid by logging to it via portal . Email server Profile is set to Server Side Synchronization and SSL is not used ( per exchange provider ) . " Use SSL for Incoming and Outgoing connections " are set to "No". Authenticaton protocol on Email Server profile is set to " Auto Detect " .

    I am using MS CRM 2016 (onprem) and SQLserver is 2016 . Both are Win 2016 servers and Firewall is disabled on both servers . Still I am getting same error when tries to Test and Enable mailbox . Am  I doing something wrong ?

  • Suggested answer
    Ajay  Dhingra Profile Picture
    Ajay Dhingra on at
    RE: Unable to send Mail - CRM 2016 Email Configuration

    Hi - It seems that error is coming from the exchange service   System.Net.Mail.SmtpException. This means something is not right from the exchange side  for the user . This is also possible that  either Email server profile or mailbox profile is setup incorrectly and thats the reason Exchange service is throwing error. Therefore, my suggestions is below.

    1. Make sure user exists in exchange correctly.

    2. Double check user account , mail box and then server profile.

    Hope this will help to resolve the issue.       

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans