@@ -308,6 +308,8 @@ with some notes:
308
308
* Use any name you like (it doesn't have to be "sasl-xoauth2").
309
309
* Do ** not** add any redirect URIs or set up any platform configurations.
310
310
* 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.
311
313
312
314
Then, add API permissions for ` SMTP.Send ` :
313
315
@@ -391,13 +393,18 @@ $ sudo chown -R postfix:postfix /var/spool/postfix/etc/tokens
391
393
392
394
Follow [ Microsoft's instructions to register an
393
395
application] ( 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.
401
408
402
409
Store the "application (client) ID" (which you'll find in the "Overview" page
403
410
for the application you registered with Azure) in ` /etc/sasl-xoauth2.conf ` .
0 commit comments