set imap_user = "@guidepointsecurity.com" # set imap_pass = set smtp_url = "smtps://@guidepointsecurity.com@smtp.gmail.com:465/" # set smtp_pass = $imap_pass set ssl_force_tls = yes # Pull a copy of this script: # https://github.com/google/gmail-oauth2-tools/blob/master/python/oauth2.py # I saved mine as ~/bin/mutt-gmail-oauth2.py # # Follow their instructions, summarized below # # Set up a client of type 'Web Application', while signed into gps, here: # https://console.developers.google.com/apis/credentials # # Authenticate and collect your refresh token with this command # mutt-gmail-oauth2.py --user='@guidepointsecurity.com' \ # --client_id='' \ # --client_secret='' \ # --generate_oauth2_token # # Then put the pieces together in the below 'refresh_command' set imap_authenticators="oauthbearer" set imap_oauth_refresh_command="~/bin/mutt-gmail-oauth2.py --quiet\ --user='@guidepointsecurity.com'\ --client_id=''\ --client_secret=''\ --refresh_token=''" set smtp_authenticators=${imap_authenticators} set smtp_oauth_refresh_command=${imap_oauth_refresh_command}