@@ -308,6 +308,8 @@ with some notes:
308308* Use any name you like (it doesn't have to be "sasl-xoauth2").
309309* Do ** not** add any redirect URIs or set up any platform configurations.
310310* You ** must** toggle "Allow public client flows" to "yes".
311+ * Be sure to select the appropriate type of account (consumer Outlook vs.
312+ "organizational directory") -- see #89 for why.
311313
312314Then, add API permissions for ` SMTP.Send ` :
313315
@@ -391,13 +393,18 @@ $ sudo chown -R postfix:postfix /var/spool/postfix/etc/tokens
391393
392394Follow [ Microsoft's instructions to register an
393395application] ( https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app#register-an-application ) .
394- Use any name you like (it doesn't have to be "sasl-xoauth2"). Under "Platform
395- configurations", add a native-client redirect URI for mobile/desktop
396- applications: ` https://login.microsoftonline.com/common/oauth2/nativeclient ` .
397- Then, add API permissions for ` SMTP.Send ` : from the app registration
398- "API permissions" page, click "add a permission", then "Microsoft Graph", and
399- from there enter "SMTP.Send" in the search box. Expand the ` SMTP ` permission,
400- then check the ` SMTP.Send ` checkbox.
396+ Use any name you like (it doesn't have to be "sasl-xoauth2").
397+
398+ Be sure to select the appropriate type of account (consumer Outlook vs.
399+ "organizational directory") -- see #89 for why.
400+
401+ Under "Platform configurations", add a native-client redirect URI for
402+ mobile/desktop applications:
403+ ` https://login.microsoftonline.com/common/oauth2/nativeclient ` . Then, add API
404+ permissions for ` SMTP.Send ` : from the app registration "API permissions" page,
405+ click "add a permission", then "Microsoft Graph", and from there enter
406+ "SMTP.Send" in the search box. Expand the ` SMTP ` permission, then check the
407+ ` SMTP.Send ` checkbox.
401408
402409Store the "application (client) ID" (which you'll find in the "Overview" page
403410for the application you registered with Azure) in ` /etc/sasl-xoauth2.conf ` .
0 commit comments