Pre-order the New Samsung Galaxy Z Flip4 & Galaxy Z Fold4 and, for a limited time, get twice the storage and a free case!
Need to update email settings?
M

New Member

 • 

8 Messages

Mon, May 9, 2022 9:12 PM

mutt oauth2 email setup

I've used an sbcglobal.net email account for many years.  In the past few I've connected with mutt (Linux OS) using an "app password". 

mutt supports oath2 authentication (currently using either oauthbearer or xoauth2) using the script mutt_oauth2.py, which can be found on github.  I use this with both gmail and outlook accounts.

To use it with att (yahoo) mail I need to know a bunch of things.  I'll list them off with guesses based on some almost certainly outdated yahoo information on line:

(1) The url of the correct authorization server and endpoints at it. 

        'authorize_endpoint': 'https://api.login.yahoo.com/oauth2/request_auth',
        'devicecode_endpoint': 'https://api.login.yahoo.com/oauth2/code',
        'token_endpoint': 'https://api.login.yahoo.com/oauth2/get_token',

(2) Mail server address (based on what works with an "app password")

        'imap_endpoint': 'imap.mail.att.net',
        'pop_endpoint': 'pop.mail.att.net',
        'smtp_endpoint': 'smtp.mail.att.net',

(3) Scope specification to point at email

        'scope': 'https://mail.att.net/',

(4) After logging into my account with a web browser, How to set up a client for my app and get a client_id and possibly client_secret for it.

Based on the outdated yahoo info I found, I am guessing that the sasl_method used  is XOAUTH2 rather than OAUTHBEARER.

I am guessing that the best redirect_uri for authorization is loopback to http://localhost or maybe OOB?

Thanks for any help!

No Responses!
Need help?
New to AT&T Community?
New to the AT&T Community? Start by visiting the Community How-To.
New to the AT&T Community?
Visit the Community How-To.