User Tools

Site Tools


techstaff:setup_a_mail_client

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
techstaff:setup_a_mail_client [2021/03/18 10:01] kauffmantechstaff:setup_a_mail_client [2021/03/18 12:13] (current) – [@uchicago.edu (O365)] chudler
Line 40: Line 40:
  
  
- +If you are using the Mutt mail clientsee [[ nix:mutt | Mutt Usage  ]]
-=== Mutt Support === +
-We have mutt 2.0.0+ working (that is a requirement). Inside their github you'll see the mutt_oauth2.py stuff under the contrib/ dir https://github.com/muttmua/mutt/tree/master/contrib. The README is good. +
- +
-Another requirement is a working gpg-agent rig. +
- +
-In my muttrcI have these: +
- +
-<code> +
-  set imap_user = "bartonp@uchicago.edu" +
-  set imap_authenticators = "xoauth2" +
-  set imap_oauth_refresh_command = "~/.mutt/mutt_oauth2/mutt_oauth2-uchicago.edu.py ~/.mutt/tmp/${imap_user}.tokens" +
- +
-  set smtp_url = "smtp://${imap_user}@smtp.office365.com:587/" +
-  set smtp_authenticators = ${imap_authenticators} +
-  set smtp_oauth_refresh_command = ${imap_oauth_refresh_command} +
-</code> +
- +
-The client-id is ''%%695da824-3d11-464b-98cc-83c714d21cf8%%''. There is a client_secret ''%%1Frt-83W.-vg579wht-f2m9Tt2D1s.n7_2%%'' however in the ''%%registrations{}%%'' section in ''%%mutt_oauth2.py%%'', I have client_secret as blank. IIRC setting it was causing issues. +
- +
-<code> +
-  'microsoft':+
-    'authorize_endpoint': 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize', +
-    'devicecode_endpoint': 'https://login.microsoftonline.com/common/oauth2/v2.0/devicecode', +
-    'token_endpoint': 'https://login.microsoftonline.com/common/oauth2/v2.0/token', +
-    'redirect_uri': 'https://login.microsoftonline.com/common/oauth2/nativeclient', +
-    'tenant': 'common', +
-    'imap_endpoint': 'outlook.office365.com', +
-    'pop_endpoint': 'outlook.office365.com', +
-    'smtp_endpoint': 'smtp.office365.com', +
-    'sasl_method': 'XOAUTH2', +
-    'scope': ('offline_access https://outlook.office.com/IMAP.AccessAsUser.All ' +
-      'https://outlook.office.com/POP.AccessAsUser.All ' +
-      'https://outlook.office.com/SMTP.Send'), +
-    'client_id': '695da824-3d11-464b-98cc-83c714d21cf8', +
-    'client_secret': '', +
-  }, +
-</code> +
- +
- +
/var/lib/dokuwiki/data/attic/techstaff/setup_a_mail_client.1616079664.txt.gz · Last modified: 2021/03/18 10:01 by kauffman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki