Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Dynamics NAV SMTP error

Posted on by Microsoft Employee

Hello all,

We have an SMTP setup in our Dynamics NAV 2017 which was working fine, however, a couple of days ago, it seemed to stop.

Whenever I go into the SMTP Mail Setup and test the email, I get the following error.

4722.nav.png

I've had a look at the Application Server but can't see anything unusual.

Thanks for your help!

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics NAV SMTP error

    This should pretty much work out-of the box. I've had three cases in the last week, where Multi Factor Authentication (MFA) was configured for the account used for SMTP authentication. Make sure that's not the case for your account, or set up an app password for it.

    • To set up an app password, go to [View:https://aka.ms/mfasetup:750:50] and log on using the account configured in the SMTP Mail Setup page.
    • Go to the App Passwords page (it's not an obvious link, but it looks like part of the page title)
    • Create a new app password, give it a name, and save it somewhere safe as it won't be shown again.
    • Replace the password in the SMTP Mail Setup page with the app password you just generated, and test again.
  • Suggested answer
    Mouli Kaku Profile Picture
    Mouli Kaku 515 on at
    RE: Dynamics NAV SMTP error

    Seems you are using authenticated relay, for which you do need permissions in order to send as/on behalf of another user. Instead, you can try configuring the "direct send" method as detailed in this article: https://support.office.com/en-us/article/How-to-set-up-a-multifunction-device-or-application-to-send-email-using-Office-365-69f58e99-c550-4274-ad18-c805d654b4c4?ui=en-US&rs=en-US&ad=US or 

    if its exchnage technet.microsoft.com/.../aa998291(EXCHG.80).aspx

    and use that user .

  • Suggested answer
    Tina Menezes Profile Picture
    Tina Menezes 2,576 on at
    RE: Dynamics NAV SMTP error

    Hi,

    You need to navigate to Event viewer->Windows logs->Application to check the logs.

    Event-viewer.JPG

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics NAV SMTP error

    Hi Chris,

    Yes, except our SMTP server is hosted and those setting just given you the typical ones.  

    What's confusing is that in my Test environment (which has a separate App and Database server), it works...

    thanks again,

    Nadim

  • Suggested answer
    CDsilva Profile Picture
    CDsilva 4,184 on at
    RE: Dynamics NAV SMTP error

    Hi Cellisimo,

    Did you follow the below steps?

    1.Navigate to SMTP setup from the search bar then click on 'Apply Office 365 Server Settings'

    smtp-mid.JPG

    2. SMTP Server and Server Port Details are auto filled, here you need to enter a valid email id and password for the same.

    smtp-mid.JPG

    3. Click on Test Email Setup. This will prompt you whether you want to send the Test email to the email id provided. select the email id and click on OK. If everything works fine you'll get the below message

    smtp-final.JPG

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics NAV SMTP error

    Hi Tina,

    Thanks for your reply.

    With regards to the event viewer, should I be looking at the Database server or the Application Server?

    regards,

    Nadim

  • Tina Menezes Profile Picture
    Tina Menezes 2,576 on at
    RE: Dynamics NAV SMTP error

    Hi,

    Kindly check your event viewer after you test the email. It may provide some additional error details.

    Also you can check the below discussion. It mentions to check your O365 settings.

    community.spiceworks.com/.../1962974-emails-not-being-delivered-due-to-tls

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