Skip to content

Commit ca5e69e

Browse files
authored
Merge pull request #740 from aspelt/Polish-and-corrections-and-SMPT-OATH-page
Small corrections and polish to setup oauth smtp for M365
2 parents 1f7be4e + 336fd40 commit ca5e69e

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

content/tutorials/server/smtp-servers/set-up-oauth-microsoft-365/index.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,19 @@ This page describes the necessary steps to make SMTP work using OAuth with Micro
2222
## 1. Check some settings in DNN
2323
> [!WARNING]
2424
> To avoid errors with the authentication in step 5, make sure that the SSL settings are correct. It must be set on **ON**.
25-
* Personabar - Security - More - SSL Settings: Make sure that SSL Settings = **ON** (/images/scr-m365-oauth-sslsetting.png)
25+
* Personabar - Security - More - SSL Settings: Make sure that SSL Settings = **ON**
26+
![Alt text](/images/scr-m365-oauth-sslsetting.png "SSL settings")
27+
2628
* Personabar - Security - Login settings: Check the site administrator account. You need to use this e-mail address in M365, because the site administrator is the sender.
2729

2830
## 2. Create a mailbox in M365 Exchange
2931
* Create a mailbox with a licence. Use the address of the site administrator.
3032
* As Admin => Userdetails - E-mail - E-mail apps: In the account settings ensure that the option *Verified SMTP* is enabled.
3133

32-
> [!WARNING]
34+
> [!NOTE]
3335
> In the tenant settings Verified SMTP is not always enabled. You can enable this option for a user with the Powershell command: `Set-CASMailbox -Identity [login-address] -SmtpClientAuthenticationDisabled $false`
3436
35-
> In Powershell ISE:
37+
> In Powershell:
3638
> * Install-Module -Name ExchangeOnlineManagement
3739
> * Connect-ExchangeOnline -Organization [TENANTID]
3840
> * Set-CASMailbox -Identity [login-address] -SmtpClientAuthenticationDisabled $false
@@ -53,6 +55,11 @@ Create an **App registration** (portal.azure.com -> App registrations)
5355
* Select **Microsoft Graph** -> Delegated -> SMTP.Send (Send emails from mailboxes using SMTP AUTH) -> Add permission
5456
* Select **APIs my organisation uses** -> Office 365 online -> Application permissions ->
5557

58+
> [!NOTE]
59+
> Grant admin consent
60+
![Alt text](/images/scr-m365-oauth-permissions.png "Grant admin consent ")
61+
62+
5663
* In the left menu > Overview
5764
* Copy the **Directory (tenant) ID** for later use
5865
* Copy the **Application (client) ID** for later use
@@ -64,7 +71,7 @@ Create an **App registration** (portal.azure.com -> App registrations)
6471
* Copy the **Application ID**
6572
* Copy the **Object ID**
6673

67-
**In Powershell ISE:**
74+
**In Powershell:**
6875
* Install-Module -Name ExchangeOnlineManagement
6976
* Connect-ExchangeOnline -Organization **[TENANTID]**
7077
* New-ServicePrincipal -AppId **[Application ID]** -ObjectId **[Oject ID]**

images/scr-m365-oauth-permissions.png

122 KB
Loading

0 commit comments

Comments
 (0)