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 revisionBoth sides next revision
techstaff:setup_a_mail_client [2021/03/11 18:05] kauffmantechstaff:setup_a_mail_client [2021/03/18 10:01] kauffman
Line 38: Line 38:
 |  Port|587| |  Port|587|
 |  Authentication Method| OAuth2| |  Authentication Method| OAuth2|
 +
 +
 +
 +=== 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 muttrc, I 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/pages/techstaff/setup_a_mail_client.txt · Last modified: 2021/03/18 12:13 by chudler

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki