I have recently installed Raspbian Buster with desktop on my Pi3B. I was previously using Stretch but ran into issues with a certain application unrelated to this question.
This question concerns using getmail to read mail from a Gmail inbox. I installed getmail on the Raspberry and set up my getmailrc file as follows
[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
port = 993
username = myemailname
password = mycleverpassword
[destination]
type = MDA_external
path = /usr/bin/procmail
arguments = ("-f", "%(sender)")
[options]
read_all = false
delete = false
message_log = ~/.getmail/log-getmail
Then when, using a PuTTY terminal session, I enter the command 'getmail' I receive the following response...
getmail version 5.13
Copyright (C) 1998-2019 Charles Cazabon. Licensed under the GNU GPL version 2.
SimpleIMAPSSLRetriever:glen.nvr99@imap.gmail.com:993:
getmailrc: credential/login error ([AUTHENTICATIONFAILED] Invalid credentials (Failure))
0 messages (0 bytes) retrieved, 0 skipped
This setup was working previously on Raspian Stretch.
Any thoughts on why it doesn't work on Buster?