Trouble logging in to gmail with fetchmail
by JinxsDad from LinuxQuestions.org on (#6J5KX)
After searches, this appears to be the right forum to ask this. If I'm wrong, please let me know.
I am trying to get fetchmail to handle email from my primary email, gmail, and maybe outlook. Ultimately I want to use another machine to do all of this so I can use a GUI (which tend to do the MTA, MDA, and MUA all in one) using procmail to filter the emails, and then setup POP3 accounts for this slackware system.
There's just one major issue right now: gmail won't let me login. I know I'm using the correct password, because I just changed about an hour ago and changed it in ~/.fetchmailrc. Fetchmail's configuration is working great with my primary email host, jdgblogs.com. But with gmail, it gets an authorization failure.
My ~/.fetchmailrc (from now on simply fetchmailrc) is (with usernames and passwords removed, obviously) is as follows:
# command line: --silent --all
# server options (first line)
# user options (second line and beyond)
# Gmail does NOT work from here---AUTH fails
poll mail.jdgblogs.com with proto POP3
user "USER" pass "PASS" is "jim" \
options ssl
# mda "/usr/bin/procmail"
# fetchmail does not like my .procmailrc for some reason
poll pop.gmail.com with proto POP3
user "USER" there with password "PASS" is "jim" \
options ssl
Again, the first works, but gmail gets the following error (I can post the full "fetchmail -d0-vk" output if requested):
fetchmail: Subject Alternative Name: pop.gmail.com
fetchmail: pop.gmail.com key fingerprint: 7F:9A:4B:53:FA:69:9C:6D:C6:7E:41:3F:25:04:D6:88
# included the above to show a good SSL connection ; now skipping to AUTH
fetchmail: POP3> USER (USER)
fetchmail: POP3< +OK send PASS
fetchmail: POP3> PASS *
fetchmail: POP3< -ERR [AUTH] Username and password not accepted.
fetchmail: [AUTH] Username and password not accepted.
fetchmail: Authorization failure on (USER)
fetchmail: For help, see http://www.fetchmail.info/fetchmail-FAQ.html#R15
fetchmail: POP3> QUIT
fetchmail: POP3< +OK Bye ce14mb104140132ywb
fetchmail: 6.4.27 querying pop.gmail.com (protocol POP3) at Fri 26 Jan 2024 08:55:53 AM CST: poll completed
fetchmail: Query status=3 (AUTHFAIL)
fetchmail: normal termination, status 3
Again, I changed the password earlier to make SURE I was using the right one. I then fixed it in fetchmailrc (copy/paste to be extra sure).
A long time ago, in a Linux Mint laptop not far away, I had gmail working. It doesn't work on there now any better than it does on this Slackware laptop (or for my other system, running FreeBSD, but it's not the subject here).
Does anyone here know why gmail is refusing to accept the new (as of at least an hour or more ago) password (didn't accept the old one, either---that's why I changed it to a known, i.e., not old, password)? Right now, I don't know if gmail just hasn't gotten the password change from google yet, or if it's an SSL issue (even though it seems to have made a good SSL connection), or is it something in my fetchmailrc file that needs to be added for gmail, specifically, but not my normal email?
So for now, I'm finally going to get my very late breakfast.
Thanks
I am trying to get fetchmail to handle email from my primary email, gmail, and maybe outlook. Ultimately I want to use another machine to do all of this so I can use a GUI (which tend to do the MTA, MDA, and MUA all in one) using procmail to filter the emails, and then setup POP3 accounts for this slackware system.
There's just one major issue right now: gmail won't let me login. I know I'm using the correct password, because I just changed about an hour ago and changed it in ~/.fetchmailrc. Fetchmail's configuration is working great with my primary email host, jdgblogs.com. But with gmail, it gets an authorization failure.
My ~/.fetchmailrc (from now on simply fetchmailrc) is (with usernames and passwords removed, obviously) is as follows:
# command line: --silent --all
# server options (first line)
# user options (second line and beyond)
# Gmail does NOT work from here---AUTH fails
poll mail.jdgblogs.com with proto POP3
user "USER" pass "PASS" is "jim" \
options ssl
# mda "/usr/bin/procmail"
# fetchmail does not like my .procmailrc for some reason
poll pop.gmail.com with proto POP3
user "USER" there with password "PASS" is "jim" \
options ssl
Again, the first works, but gmail gets the following error (I can post the full "fetchmail -d0-vk" output if requested):
fetchmail: Subject Alternative Name: pop.gmail.com
fetchmail: pop.gmail.com key fingerprint: 7F:9A:4B:53:FA:69:9C:6D:C6:7E:41:3F:25:04:D6:88
# included the above to show a good SSL connection ; now skipping to AUTH
fetchmail: POP3> USER (USER)
fetchmail: POP3< +OK send PASS
fetchmail: POP3> PASS *
fetchmail: POP3< -ERR [AUTH] Username and password not accepted.
fetchmail: [AUTH] Username and password not accepted.
fetchmail: Authorization failure on (USER)
fetchmail: For help, see http://www.fetchmail.info/fetchmail-FAQ.html#R15
fetchmail: POP3> QUIT
fetchmail: POP3< +OK Bye ce14mb104140132ywb
fetchmail: 6.4.27 querying pop.gmail.com (protocol POP3) at Fri 26 Jan 2024 08:55:53 AM CST: poll completed
fetchmail: Query status=3 (AUTHFAIL)
fetchmail: normal termination, status 3
Again, I changed the password earlier to make SURE I was using the right one. I then fixed it in fetchmailrc (copy/paste to be extra sure).
A long time ago, in a Linux Mint laptop not far away, I had gmail working. It doesn't work on there now any better than it does on this Slackware laptop (or for my other system, running FreeBSD, but it's not the subject here).
Does anyone here know why gmail is refusing to accept the new (as of at least an hour or more ago) password (didn't accept the old one, either---that's why I changed it to a known, i.e., not old, password)? Right now, I don't know if gmail just hasn't gotten the password change from google yet, or if it's an SSL issue (even though it seems to have made a good SSL connection), or is it something in my fetchmailrc file that needs to be added for gmail, specifically, but not my normal email?
So for now, I'm finally going to get my very late breakfast.
Thanks