Skip to main content

Notifications

Supply Chain Management forum
Answered

Authentication issue when using SMTP in D365 FO

Posted on by 332

I hope someone can assist me with an issue we have been experiencing with mail authentication when attempting to send reports, like invoices and quotations, to customers via email. I am a non-technical consultant to apologies in advance if any of these things should be obvious. 

I have configured our email parameters in D365 FO
1425.Screenshot_5F00_1.png

6406.Screenshot_5F00_2.png

When I test the connection I get the following error: Mail authentication failed. Please verify your SMTP user name and password. If your SMTP server doesn't support authentication, please clear the SMTP user name and password. Server smtp.office365.com:587 using SSL/TLS supports the following authentication options: LOGIN, XOAUTH2.

You get the same error when generating a sales quote, for example, and using print management to email the document to your customer

5282.Screenshot_5F00_3.png

Printing of documents and delivering via emails were working when last I tested it a while back. Our customer has said that they haven't made any permission changes to the email account. 

Are there new authentication protocols that Microsoft has released perhaps that means either our setup or the permission on the AD account is outdated? I have tried Googling parts of the error message and it does look like their is a new OAuth 2.0 authentication protocol for SMTP, but I am struggling to find clear guides of what needs to be updated on the AD Account or within D365,

Any assistance is always greatly appreciated.

Categories:
  • BrettJhonson Profile Picture
    BrettJhonson 7 on at
    Authentication issue when using SMTP in D365 FO
    Make sure your SMTP user name and password are correct, and that authenticated SMTP is enabled in Office 365 settings. Consider new OAuth 2.0 requirements and verify settings using SMTPGet.
  • BrettJhonson Profile Picture
    BrettJhonson 7 on at
    Authentication issue when using SMTP in D365 FO
    Ensure your SMTP user name and password are correct, and that authenticated SMTP is enabled in Office 365 settings. Consider new OAuth 2.0 requirements and verify settings using SMTPget.
  • Suggested answer
    Pawel_Kolosza Profile Picture
    Pawel_Kolosza 16 on at
    Authentication issue when using SMTP in D365 FO
    Hi,
     
    make sure that authentication password is re/filled by the user account with authenticated SMTP Marked/Enabled.
     
    Kindly follow these steps to set up SMTP authentication:
    • Go to Admin.Microsoft.com 
    • Log in with a security Admin, Global Admin 
    • Expand Users > Active Users
    • Click the User that will connect as SMTP
    • Click the Mail Tab
    • Click on Manage Email Apps
    • Make sure that Authenticated SMTP is Marked/Enabled 
     Please note that additional setting may be under: Microsoft 365 admin center under Org settings | Modern Authentication | Authenticated SMTP Mark/Enable Authenticated SMTP

    Enable or disable SMTP AUTH in Exchange Online | Microsoft Learn

     
  • Moncada Profile Picture
    Moncada 5 on at
    RE: Authentication issue when using SMTP in D365 FO

    Hi, Liese
    I have the problem too, and I haven´t been able to fix it, may I have a tip

    Tks

  • Suggested answer
    SouravDam Profile Picture
    SouravDam 11,719 on at
    RE: Authentication issue when using SMTP in D365 FO

    Hi Liese-Marie Heyns,

    Good to know that SMTP is working fine with you.

    Also, have you tried with the Batch email provider with "Exchange" ?

    pastedimage1632180744108v1.png

    Regards,
    Sourav

  • Verified answer
    Liese-Marie Heyns Profile Picture
    Liese-Marie Heyns 332 on at
    RE: Authentication issue when using SMTP in D365 FO

    In the end I think it was the new OAuth authentication methodology that caused the error. I don't know what the exact resolution was, but our client needed to accept some conditions on the Microsoft AD permissions side and reset the password.

    It is now working correctly again.

  • Verified answer
    huijij Profile Picture
    huijij 19,801 on at
    RE: Authentication issue when using SMTP in D365 FO

    Hi Liese,

    Did you also ping smtp.office365.com working fine?

    This issue could be related with the SMTP authentication submission which can be disabled:docs.microsoft.com/.../authenticated-client-smtp-submission

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,860 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,155 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans