October 9, 2022 paperless-ngx gmail self-hosted
I saw some errors in my paperless-ngx logs recently:
[2022-11-09 15:33:13,556] [ERROR] [paperless_mail] Error while authenticating account paperless gmail: Response status "OK" expected, but "NO" received. Data: [b'[AUTHENTICATIONFAILED] Invalid credentials (Failure)']
After doing some digging, I discovered the following that will be affecting a lot of Paperless-ngx users with dedicated gmail accounts for ingress.
As of 30/05/2022, Google stopped supporting the Less Secure Apps mode which was often used to enable Paperless-NG to work with GMail via IMAP. Now, you need to enable 2FA and then generate an App Password (with instructions here). This password is then used within paperless-ngx like the account password previously.
For more guidance on how to set up Paperless-ngx with automated email ingress and rules, have a look at my other article here