Reputation: 1012
I have my personal gmail account: [email protected].
Through that account, I also have it configured to check and display mail for my business email: [email protected]
By default, Gmail will only fetch mail for the linked, external account about once per hour. To manually fetch I have to go to Settings --> See All Settings --> Accounts and Import --> scroll down --> Check Mail Now ...a bit too laborious for me.
I thought I could use fetchmail from the command line (MacOS) to do the same thing with 1 click, but I'm having trouble authenticating and i'm not real sure why.
running fetchmail -v
with the following .fetchmailrc
set postmaster "[email protected]"
poll pop.gmail.com with proto POP3
user '[email protected]' there with password 'MY_CORRECT_PASSWORD' is '[email protected]' here
options ssl
produces the following output:
Feb 10 09:20:58 fetchmail: 6.5.2 querying pop.gmail.com (protocol POP3) at Mon, 10 Feb 2025 09:20:58 -0700 (MST): poll started Feb 10 09:20:58 fetchmail: Trying to connect to 255.255.255.255/995...connected. Feb 10 09:20:58 fetchmail: Server certificate: Feb 10 09:20:58 fetchmail: Issuer Organization: Google Trust Services Feb 10 09:20:58 fetchmail: Issuer CommonName: WR2 Feb 10 09:20:58 fetchmail: Subject CommonName: pop.gmail.com Feb 10 09:20:58 fetchmail: Subject Alternative Name: pop.gmail.com Feb 10 09:20:58 fetchmail: pop.gmail.com fingerprint is: {MD5}BA:74:01:8A:4B:DA:7C:83:78:4D:E2:38:70:DB:27:A3 Feb 10 09:20:58 fetchmail: SSL/TLS: using protocol TLSv1.3, cipher TLS_AES_256_GCM_SHA384, 256/256 secret/processed bits Feb 10 09:20:58 fetchmail: POP3< +OK Gpop ready for requests from 174.29.205.115 a1mb114072529oop Feb 10 09:20:58 fetchmail: POP3> CAPA Feb 10 09:20:58 fetchmail: POP3< +OK Capability list follows Feb 10 09:20:58 fetchmail: POP3< USER Feb 10 09:20:58 fetchmail: POP3< RESP-CODES Feb 10 09:20:58 fetchmail: POP3< EXPIRE 0 Feb 10 09:20:58 fetchmail: POP3< LOGIN-DELAY 300 Feb 10 09:20:58 fetchmail: POP3< TOP Feb 10 09:20:58 fetchmail: POP3< UIDL Feb 10 09:20:58 fetchmail: POP3< X-GOOGLE-RICO Feb 10 09:20:58 fetchmail: POP3< SASL PLAIN XOAUTH2 OAUTHBEARER Feb 10 09:20:58 fetchmail: POP3< . Feb 10 09:20:58 fetchmail: POP3> USER [email protected] Feb 10 09:20:58 fetchmail: POP3< +OK send PASS Feb 10 09:20:58 fetchmail: POP3> PASS * Feb 10 09:20:58 fetchmail: POP3< -ERR [AUTH] Username and password not accepted. Feb 10 09:20:58 fetchmail: [AUTH] Username and password not accepted. Feb 10 09:20:58 fetchmail: Authorization failure on [email protected]@pop.gmail.com Feb 10 09:20:58 fetchmail: For help, see http://www.fetchmail.info/fetchmail-FAQ.html#R15 Feb 10 09:20:58 fetchmail: POP3> QUIT Feb 10 09:20:58 fetchmail: POP3< +OK Bye a1mb114072529oop Feb 10 09:20:58 fetchmail: 6.5.2 querying pop.gmail.com (protocol POP3) at Mon, 10 Feb 2025 09:20:58 -0700 (MST): poll completed Feb 10 09:20:58 fetchmail: Query status=3 (AUTHFAIL) Feb 10 09:20:58 fetchmail: normal termination, status 3 FAIL
For the password in the .fetchmailrc file, I have tried using the password for that specific POP account ([email protected]) and a Google app password for fetchmail. Same results for both.
Any ideas for how I might get this running?
Upvotes: 0
Views: 26