Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

E-mail setup - Cannot connect to Exchange Server

(1) ShareShare
ReportReport
Posted on by 97

Hello,

I'm testing e-mailing on a Citrix desktop and am not able to get Dynamics GP 2016 R2 to recognize the E-mail account.  I'm able to open Outlook 2016 and set up the AD account I'm logged in as the E-mail account.  I can send and receive e-mail on that account.

In Dynamics GP System Preferences the Mail Server type = Exchange.  They advise their e-mail system is on O365.

When clicking on Admin> Setup > Company > E-mail Settings > Sales Settings, I'm prompted to enter my password for the e-mail account, then it tries to connect.  After 2 minutes, it comes back and says "Connection to the MAPI Server is not available.  Unable to send e-mail or select addresses."

Office client for Outlook 2016 is 64 bit so I am expecting it to connect since the server type is Exchange.  We haven't tried with the 32-bit Outlook client application.  Client has been asked to turn on Outlook Autodiscover and report that has been completed.  I just tested using instructions in this blog and it keeps coming back and prompting me for the account password and never 'discovers'.

Please advise next steps.  I am thinking it's the 32 bit Outlook client, but since they are on Citrix, changing the installed applications is somewhat of a challenge so want to avoid going backwards to 32-bit if at all possible.

Thanks,

Lisa

*This post is locked for comments

  • Suggested answer
    Derek Albaugh Profile Picture
    on at
    RE: E-mail setup - Cannot connect to Exchange Server

    Being it is GP 18.3, there is an option to use MFA with Exchange email, whereas before in prior versions, GP email didn't work well with MFA or other two touch authentication configurations.

    docs.microsoft.com/.../multi-factor-authentication

    Basic Authentication and Autodiscover still must be enabled on the Exchange being used and would work the same as in all GP versions.

    Thanks

  • Bill Campbell Profile Picture
    on at
    RE: E-mail setup - Cannot connect to Exchange Server

    Here is the About GP Screen

    pastedimage1623707203346v1.png

    Current setting is Exchange as the version of Outlook Client installed appears to be 64bit - so following the rules we choose Exchange

    As to the rest of your response - I will work with the client to get the rest of the information and will respond in details as soon as possible.

  • Suggested answer
    Derek Albaugh Profile Picture
    on at
    RE: E-mail setup - Cannot connect to Exchange Server

    Hello Bill,

    For starters, are we using MAPI or EXCHANGE, as setup in the System Preferences window of Dynamics GP?

    If EXCHANGE, and users are being prompted for credentials over and over via the Exchange Log On window, the information would be about the same, or as mentioned in the Dynamics GP Email Troubleshooting blog under 'Exchange Specific Errors' and 'Login Failed: Check your login information and try again'.

    community.dynamics.com/.../dynamics-gp-email-troubleshooting-guide-1743830067

    If this is what is being seen, the main causes are usually an Autodiscover issue, an issue with Multi-factor Authentication (MFA) and/or Basic Authentication being disabled, which Dynamics GP requires for Exchange email functionality.

    The SY04920 table testing, which mentioned above, is a good test for the AutoDiscover not working or not. The troubleshooting guide has links to more information on each one of these.

    Another question would also be whether this customer is using GP 18.3 or a prior version, as there are some changes to the email functionality we added in GP 18.2/18.3, such as allowing MFA via Azure and such.

    If nothing in the troubleshooting guide and our testing helps point to a specific issue/cause, we then will usually look at a Fiddler trace to capture the Exchange Log On attempt:

      a. On the server where you’re seeing this Email log on issue, browse to this URL and download Fiddler:      www.telerik.com/.../fiddler

      b. In Start > All Programs, find Fiddler and launch it.

      c. In Fiddler, click on File and remove the check-mark next to ‘Capture Traffic’.

      d. Click on Tools > Fiddler Options…, then click on the ‘HTTPS’ tab. Here, make sure that both options for HTTPS are marked, and click OK.

      e. Click on File and put a check-mark next to ‘Capture Traffic’ again in Fiddler.

      f. Re-create error/issue

      g. Click on File > Save > All Sessions. Browse the log file for any error information.

    For 'Exchange', we've really only tested with Exchange Online and on-prem Exchange Server. If the customer is using a 3rd party email host, there may be more setup needed, but as far as Dynamics GP goes, if using 'EXCHANGE', the big three (depending on GP version) are MFA, Basic Authentication and Autodiscover.

    Let me know if you have any questions or your findings.

    Thanks

  • Bill Campbell Profile Picture
    on at
    RE: E-mail setup - Cannot connect to Exchange Server

    Derek, I have a situation with a client installation that appears to be different than what you have outlined above.
    Client has a 3rd party email host and they are using Outlook client to connect to the Exchange host.

    8284.WebMail-Login.PNG

    When we enter the User Name and the Password we have Dynamics sit and pause - finally Dynamics comes back and asks for us to repeat the entry.

    So far no combination we have tried appears to work.

    Can you assist with some direction?

  • Derek Albaugh Profile Picture
    on at
    RE: E-mail setup - Cannot connect to Exchange Server

    I'm happy to hear you were able to get the issue resolved with the O365 email in Dynamics GP.

    Have a great day.

  • Lisa Williams Profile Picture
    97 on at
    RE: E-mail setup - Cannot connect to Exchange Server

    Derek,

    Setting the O365 account up via their corporate account did the trick and I was able to e-mail from within GP.

    Thank you!!

    Lisa

  • Verified answer
    Derek Albaugh Profile Picture
    on at
    RE: E-mail setup - Cannot connect to Exchange Server

    When I setup my Dynamics GP to run/use O365 for regular email functionality, I had to do the following:

    1. Make sure System Preferences window is set to EXCHANGE, not MAPI.

    2. Since I was using O365, I had to configure Exchange Online, and used a User ID such as Derek@DynamicsGP.onmicrosoft.com.

    3. I also looked at the DYNAMICS..SY04920 table and verified that my Exchange_Server_URL is correct for my USERID.

      **NOTE: If you copy the Exchange_Server_URL into a browser window, it should render a service landing page where it shows a svcutil.exe link and some C# code, etc.

    When you log in to the Exchange window in GP, GP asks AutoDiscover for the EWS URL. AutoDiscover gives the URL back, and then GP passes the credentials to that URL. GP then stores that URL in the SY04920.

    The next time you log in, it takes that URL and does a quick check to see if the URL and your credentials are valid. If the URL doesn’t work, GP passes your credentials back to AutoDiscover to get the new EWS URL. If the URL in SQL is wrong, GP will ask AutoDiscover for a new one.

    4. If using a regular Exchange Server and not O365 Exchange Online, I'd also verify whether the user's UPN and email address are set to the same thing, as currently it is a requirement of Autodiscover for these to match and since Dynamics GP uses Autodiscover to get the EWS URL, it is a requirement of Dynamics GP.

        a. For the user you've elected to be the 'test account', log into the Domain Controller and make sure the email suffix is added to the domain as an alternate domain suffix:

            1. In Active Directory Domains and Trusts, right-click on 'AD Domains and Trusts' and verify under the 'UPN Suffixes' tab, that the email suffix is added to the domain as an alternate domain suffix.

            2. Add the suffix for your email address as an alternate here, click the Add button. This process makes the email suffix available to choose in the next step.

        b. In Active Directory Users & Computers, right-click on your test user and go into Properties. Under the 'Account' tab, the same email suffix you setup above, will now be available to choose for the User Logon Name.

            1. Set the User Logon Name as your email address. For example, if your email address is admin2@email-domain.com, your screen setup should show under User Logon Name:

                  Field1: admin2         Field2: @email-domain.com

        c. Once the email address and UPN match, attempt the logon through Dynamics GP's Exchange Logon window again, and see if that now works.

        ***NOTE: For using O365 Exchange Online with Dynamics GP, as mentioned in my previous case update, I didn't have to setup any of this***

    I'd start with the above and see if any of this helps with getting O365 working with the Dynamics GP email functionality.

    Thanks

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,280 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,038 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans