Skip to main content

msdyn365bc - SMTP with Multi-factor Authentication.

Hi Readers,

I am sure you have either heard or using Multi-factor authentication.

The Reason companies use MFA because - 
Your passwords can be easily compromised. MFA immediately increases your account security by requiring multiple forms of verification to prove your identity when signing into an application.

With Great powers there are new issues or I should say new configuration need to done with dependent software's.


In this article we will fix related to SMTP Setup changes that need to be introduced due to Multi-factor authentication.

Error message in SMTP after Multi Factor Authentication -

Business Central -


The mail system returned the following error: "A call to MailKit.Net.Smtp.SmtpClient.Authenticate failed with this message: 5.7.3 Authentication unsuccessful [PN1PR01CA0096.INDPRD01.PROD.OUTLOOK.COM]".

Dynamics NAV - 


The mail system returned the following error: "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [BM1PR0101CA0052.INDPRD01.PROD.OUTLOOK.COM]".

Steps for New Setup.

1. Open Office 365 Security Info using link - https://mysignins.microsoft.com/security-info.

2. Click on Add Method and Choose App Password.



3. Provide a App Name.




4. Copy and Save the App Password. This cannot be accessed again.



5. Use App Password in SMTP Mail Setup window and Send Test Email.



Hope this article helps you to setup your SMTP in Business Central / Dynamics NAV with Multi Factor authentication.

Regards,
Saurav Dhyani

www.sauravdhyani.com

Comments

Popular posts from this blog

VIEW SERVER STATE permission on SQL Server?

Hi all, Sometime While trying to Login into a database we face an error message as shown below. --------------------------- Microsoft Dynamics NAV Classic --------------------------- You cannot start Microsoft Dynamics NAV Classic because you do not have the VIEW SERVER STATE permission on SQL Server. Contact your system administrator. --------------------------- OK    ---------------------------

BC 21 and Higher - PowerShell Cmdlet (Replacement of Business Central Administration).

Hi Readers, As discussed in last article about deprecating of Business Central Administration, there are few common actions that we use in administration till Business Central 20. For our on-prem customers, we will still require doing activities. As Microsoft suggest we need to start using PowerShell cmdlet.    Let's see how to do those via PowerShell, or Administration Shell. I will be keep adding commands as you comment to this article.

Send Mail with Attachment From Navision.

Hi all, We have seen how to save a report into PDF and how to send mail to a customer. Let's link these two post in one i.e. Mailing statement to a customer into PDF Format. This article is part of the Series. Please Refer  Table of Content here . If you have the old objects set let me brief you what I will be changing -