Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Mail box not configured for outgoing mails - Dynamics 365

Posted on by 30

I have a challenge sending mails out of Dynamics 365 - it was working, but now several mail boxes fail - all it seems fails with this:
Error : Microsoft.Exchange.WebServices.Data.ServiceRequestException: The request failed. The remote server returned an error: (401) Unauthorized. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.

And in Dynamics mail box view, it says (translated from Danish): This mail box has been deactivated for handling outgoing mails

How do I get that activated again? (Exchange is AWS hybrid, if that makes a difference)

  • Verified answer
    jane.larsen Profile Picture
    jane.larsen 30 on at
    RE: Mail box not configured for outgoing mails - Dynamics 365

    Update:

    It turned put to be a bug from a firewall firmware update - troubleshooting also caused a bunch of old mails being sent out - rather bad.

    For the benefit of others changing authentication on a mailbox:

    - check the handle mail from date on the mail boxes before making the changes! (note this is not shown in forms by default)

    - in this case the mail boxes was set to handle mails after 1900-1-1 and the server config was 2017-1-1 (now set to a more recent and relevant value in my case

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: Mail box not configured for outgoing mails - Dynamics 365

    Hi partner,

    Did you use other users' mailboxes to send emails?

    If so, "Allow other Microsoft Dynamics 365 users to send email on your behalf" must be checked in the user's personal settings.

    pastedimage1591164010295v1.png

  • jane.larsen Profile Picture
    jane.larsen 30 on at
    RE: Mail box not configured for outgoing mails - Dynamics 365

    No it does not - it seems like standard settings do not have outgoing email defined, but even if I set this for outgoing mail in this mail box and hit "test and activate", it still fails on anauthorized (Http server returned Unauthorized exception)

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: Mail box not configured for outgoing mails - Dynamics 365

    Hi partner,

    Please follow the steps below.

    Go to Settings > Email Configuration > Mailboxes, edit the mailbox, check if Outgoing Email is Server-Side Synchronization or Email Router.

    1376.pastedimage1591163145218v1.png

    Then Approve Email, Apply Default Email Settings, Test & Enable Mailbox.

    2364.pastedimage1591163286583v3.png

    See if the results are all Success.

    4064.pastedimage1591163366241v4.png

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans