@@ -559,11 +559,14 @@ Token refresh succeeded.
559
559
$ service postfix restart
560
560
```
561
561
562
- ## Using Multiple Mail Providers Simultaneously
563
-
564
- One instance of sasl-xoauth2 may provide tokens for different mail providers,
565
- but each provider will require its own client ID, client secret, and token
566
- endpoint. In this case, each of these may be set in the token file rather than
562
+ ## Using Multiple Mail Providers or Users Simultaneously
563
+
564
+ One instance of sasl-xoauth2 may provide tokens for different mail providers
565
+ and/or users.
566
+ Each provider will require its own client ID, client secret, and token
567
+ endpoint. Each user may require a username to be specified, if the username
568
+ automatically obtained from postfix is not correct.
569
+ In this case, each of these may be set in the token file rather than
567
570
in ` /etc/sasl-xoauth2.conf ` . Set them when setting the initial access token:
568
571
569
572
``` json
@@ -573,7 +576,8 @@ in `/etc/sasl-xoauth2.conf`. Set them when setting the initial access token:
573
576
"client_secret" : " client secret goes here, if required" ,
574
577
"token_endpoint" : " token endpoint goes here, for non-Gmail" ,
575
578
"expiry" : " 0" ,
576
- "refresh_token" : " refresh token goes here"
579
+ "refresh_token" : " refresh token goes here" ,
580
+ "user" : " username goes here"
577
581
}
578
582
```
579
583
0 commit comments