|
1 | 1 | --- |
2 | | -title: Mailbox fails to be tested and enabled |
3 | | -description: This article provides a resolution for the problem that occurs when a Dynamics 365 mailbox is configured to use Server-Side Synchronization with Gmail. |
| 2 | +title: Mailbox set up with Gmail fails to be tested and enabled |
| 3 | +description: This article provides a resolution for the problem that occurs when a Dynamics 365 mailbox is configured to use server-side synchronization with Gmail. |
4 | 4 | ms.reviewer: |
5 | | -ms.topic: troubleshooting |
6 | | -ms.date: 11/19/2024 |
| 5 | +ms.date: 01/02/2025 |
7 | 6 | ms.custom: sap:Email and Exchange Synchronization |
8 | 7 | --- |
9 | | -# Troubleshooting Server-Side Synchronization with Gmail |
| 8 | +# Troubleshooting server-side synchronization with Gmail |
10 | 9 |
|
11 | 10 | > [!IMPORTANT] |
12 | 11 | > As documented [here](https://support.google.com/accounts/answer/6010255), starting May 30th of 2022, Gmail is ending support for apps that are configured to only use your username and password. To use server-side synchronization with Gmail, follow the steps in [Connect Gmail accounts by using OAuth 2.0](/power-platform/admin/connect-gmail-oauth2). |
13 | 12 |
|
14 | | -This article helps you resolve the problem that occurs when a Dynamics 365 mailbox is configured to use Server-Side Synchronization with Gmail. |
| 13 | +This article helps you resolve the problem that occurs when a Dynamics 365 mailbox is configured to use server-side synchronization with Gmail. |
15 | 14 |
|
16 | 15 | _Applies to:_ Microsoft Dynamics 365 |
17 | 16 | _Original KB number:_ 4493342 |
18 | 17 |
|
19 | 18 | ## Symptoms |
20 | 19 |
|
21 | | -When a Dynamics 365 mailbox is configured to use Server-Side Synchronization with Gmail, the mailbox may fail to be tested and enabled successfully or incoming emails are not received in Dynamics 365. |
| 20 | +When you try to [test and enable](/power-platform/admin/connect-exchange-online#test-the-configuration-of-mailboxes) a mailbox that's configured to use [server-side synchronization with Gmail](/power-platform/admin/connect-gmail-oauth2), the test might fail, or the incoming emails might not be received in Dynamics 365. |
22 | 21 |
|
23 | | -## Cause |
| 22 | +## Cause 1:Incorrect port configuration |
24 | 23 |
|
25 | | -If the mailbox fails to be tested and enabled, this can be caused by the incoming or outgoing ports not being configured correctly. A Dynamics 365 email server profile for Gmail should be configured to use port 995 for incoming and port 587 for outgoing. |
26 | | -If the mailbox was tested and enabled successfully but emails are not being created in Dynamics 365, this can occur if you are not using **recent mode**. |
| 24 | +If your mailbox fails to be tested and enabled, it might be due to incorrect configuration of incoming or outgoing ports. A Gmail email server profile in Dynamics 365 should use port 995 for incoming mail and port 587 for outgoing mail. |
27 | 25 |
|
28 | | -## Resolution |
| 26 | +To solve this issue, verify that your email server profile is set up with port 995 for incoming emails and port 587 for outgoing emails. Enable settings from [Less secure apps & your Google Account](https://support.google.com/accounts/answer/6010255), if necessary. |
29 | 27 |
|
30 | | -Verify the email server profile is configured to use port 995 for incoming and port 587 for outgoing. You may also need to enable the following setting: |
| 28 | +## Cause 2: Absence of "recent mode" |
31 | 29 |
|
32 | | -[Less secure apps & your Google Account](https://support.google.com/accounts/answer/6010255) |
| 30 | +If the mailbox is tested and enabled successfully but emails aren't received in Dynamics 365, it might be because "recent mode" isn't used. |
33 | 31 |
|
34 | | -If the mailbox is tested and enabled successfully but incoming email is not created in Dynamics 365, try using **recent mode**. Refer to the following article and expand the section: **Emails aren't downloading correctly**. |
| 32 | +Update the Gmail email address within Dynamics 365 by including `recent:` at the beginning of the address. For example, change `[email protected]` to `recent:[email protected]`. For more information, see [Emails aren't downloading correctly ](https://support.google.com/mail/answer/7104828#zippy=%2Cemails-arent-downloading-correctly). |
35 | 33 |
|
36 | | -[Read Gmail messages on other email clients using POP](https://support.google.com/mail/answer/7104828) |
37 | | - |
38 | | -You can follow the steps mentioned in the article above to update the Gmail email address in Dynamics 365 to include `recent:` at the beginning. Example: `recent:[email protected]`. |
| 34 | +[!INCLUDE [Third-party disclaimer](../../../includes/third-party-disclaimer.md)] |
0 commit comments