Hi,
I've configured my mutt mail client, using mutt_oauth2.py to
authenticate to our company mail server that runs Dovecot and Postfix.
Authentication is working for the most part.
I can login to read email. My IMAP inbox seems to work all day long.
However, I'm having problems sending. If I try to send an email soon
after logging in, it is able to send without issue. However, if some
time passes, sending starts to fail with a message that Oauthbearer
authentication failed. When I try to send, my GPG window pops
up and I enter my GPG passphrase (which is accepted) but I still have
problems sending. I get an error in Mutt that tells me that OauthBearer
authentication failed, though our mail server logs report no failure.
It appears that Mutt isn't even attempting to authenticate at that
point. My only recourse is to then save my email to my
Drafts folder, quit Mutt, and then log in to Mutt again and then send
the email.
Here are my Oauth settings from my .muttrc:
# OAUTH2:
set imap_user = 'bwalton'
set imap_pass = ''
set imap_authenticators="oauthbearer:xoauth2"
set imap_oauth_refresh_command="/home/bwalton/.mutt/mutt_oauth2.py
/home/bwalton/.mutt/${imap_user}.tokens"
# SMTP connection settings
set smtp_authenticators=${imap_authenticators}
set smtp_url=smtps://[email protected]:465/
set smtp_oauth_refresh_command=${imap_oauth_refresh_command}
It would seem that the smtp_oauth_refresh isn't working, but I'm not
sure. Is the refresh command supposed to interact with my browser
again? If so, that doesn't seem to happening.
Thank you for any input you can offer.
Sincerely,
Bryan Walton
--
Bryan K. Walton 319-337-3877
Senior Linux Systems Administrator Leepfrog Technologies, Inc