aboutsummaryrefslogtreecommitdiffstats
path: root/doc/example-msmtp.conf
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2020-05-28 16:00:10 -0300
committerJason Gunthorpe <jgg@mellanox.com>2020-05-28 16:13:11 -0300
commit8f7c714265c7644c818a93fbc7928fc6b4d1c30e (patch)
tree63727130e2cb4a66ff32b26c8e0558327a9c279f /doc/example-msmtp.conf
parent192d633a13adf2d552f4257f4975b066204b9da9 (diff)
downloadcloud_mdir_sync-8f7c714265c7644c818a93fbc7928fc6b4d1c30e.tar.gz
cloud_mdir_sync-8f7c714265c7644c818a93fbc7928fc6b4d1c30e.tar.bz2
cloud_mdir_sync-8f7c714265c7644c818a93fbc7928fc6b4d1c30e.zip
Add cms-oauth
This is a command line program to get the OAUTH tokens from the credential server. It is intended to fit into the 'call a program to get the token' methodology that several tools are implementing. Several options are provided to format the token and a built in SMTP protocol tests that the server is working properly. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'doc/example-msmtp.conf')
-rw-r--r--doc/example-msmtp.conf18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/example-msmtp.conf b/doc/example-msmtp.conf
new file mode 100644
index 0000000..23852f6
--- /dev/null
+++ b/doc/example-msmtp.conf
@@ -0,0 +1,18 @@
+defaults
+tls on
+tls_starttls on
+
+account gmail
+host smtp.gmail.com
+port 587
+auth oauthbearer
+user user@domain
+from user@domain
+passwordeval cms-oauth --cms_sock=cms.sock --proto=SMTP --user=user@domain --output=token
+
+account default
+host smtp.office365.com
+port 587
+auth xoauth2
+from user@domain
+passwordeval cms-oauth --cms_sock=cms.sock --proto=SMTP --user=user@domain --output=xoauth2-b64