Post by rootPost by RinaldiI can confirm this works. Seemed rather silly when I was doing it.
poll pop.gmail.com with proto POP3 service 995
user '$USER' there with password '$PASSWD' is 'me' here ssl
rinaldi
Thanks rinaldi, that's what I had before the oauth2 was enabled.
It no longer works for me.
Went through the google auth procedure to get app password.
logged into my google email account, brought to settings, show all
and set google mail to use imap. Configured it to do whatever the
client says to do with mail message.
installed dovecot on my system so I can use imap in claws-mail and
thunderbird apps. I did have to change my old google email login password
to new google app password.
Works for me. I did change from pop to imap.
# cat ~just_me/.fetchmailrc
#***************************************
# /accounts/just_me/.fetchmailrc
#***************************************
#********************
#* get any ISP email
#********************
poll "imap.gmail.com" with proto IMAP port 993
user "***@gmail.com" there with password "16_digit_google_app_pw_here"
is just_me here
options
ssl # download "seen" and "unseen" messages
fetchall # retrieve old and new messages
stripcr # Strip carriage returns from ends of lines
nokeep # delete new messages after retrieval
#****************************
#* get any credit card email
#****************************
poll "imap.gmail.com" with proto IMAP port 993
user "***@gmail.com" there with password "16_digit_google_app_pw_here"
is just_me here
options
ssl # download "seen" and "unseen" messages
fetchall # retrieve old and new messages
stripcr # Strip carriage returns from ends of lines
nokeep # delete new messages after retrieval
#*********** end accounts/hotmail/.fetchmailrc *******************
Did all the above for my
# grep mail /etc/passwd | wc -l
7
email accounts each of which runs fetchmail cron job hourly.
I also have a root cron which checks all linux mail boxs and
uses xmessage to tell me who needs to read any new mail.
With this setup there is no reason to log into gmail's email website.