A very simple Cyrus SASL2 client side plugin
for XOAuth that works with Mutt to login into
Gmail IMAP.
- Install the dependencies
- Build and install the plugin via
make && sudo make install
- Go to Quick Run-Through with oauth2.py and download
oauth2.py
per their instructions. - Follow the step Create and Authorize an OAuth Token
- Use the
oauth_token
andoauth_token_secret
and add them into the config file~/.xoauthrc
:
# The last oauth_token output of xoauth.py
token = 4/8Um6T29C3ehUXnqqQYzqAqzsAKRK
# The last oauth_token_secret output of xoauth.py
token_secret = Eq2DySVk63bJegXlgW8ZfrQZ
- Configure mutt to use XOAUTH as the SASL auth mechanism. E.g., in your
~/.muttrc
:
set imap_authenticators="XOAUTH"
set smtp_authenticators="XOAUTH"