gutmensch / docker-dmarc-report

229 stars 26 forks source link

Unable to use Google imap services #56

Open servebeer opened 5 months ago

servebeer commented 5 months ago

My issue closely resembles Issue #18, but I do have 2FA on my account and I have setup an App Password, but the connection still fails:

CRIT: Dmarc reports could not be parsed. Check your IMAP and MYSQL Settings. DEBUG: Parsing failed with the following output: Started at Thu Apr 11 18:25:36 2024 Using Mail::IMAPClient version 3.43 on perl 5.034002 Connecting with IO::Socket::IP PeerAddr imap.gmail.com PeerPort 993 Proto tcp Timeout 600 Debug 1 Connected to imap.gmail.com ERROR: socket closed while reading data from server at /usr/local/share/perl5/site_perl/Mail/IMAPClient.pm line 1715. Mail::IMAPClient::_read_line(Mail::IMAPClient=HASH(0xfff467387430)) called at /usr/local/share/perl5/site_perl/Mail/IMAPClient.pm line 1416 Mail::IMAPClient::_get_response(Mail::IMAPClient=HASH(0xfff467387430), "*", "PREAUTH") called at /usr/local/share/perl5/site_perl/Mail/IMAPClient.pm line 408 Mail::IMAPClient::Socket(Mail::IMAPClient=HASH(0xfff467387430), IO::Socket::IP=GLOB(0xfff467388778)) called at /usr/local/share/perl5/site_perl/Mail/IMAPClient.pm line 369 Mail::IMAPClient::connect(Mail::IMAPClient=HASH(0xfff467387430)) called at /usr/local/share/perl5/site_perl/Mail/IMAPClient.pm line 315 Mail::IMAPClient::new("Mail::IMAPClient", "Server", "imap.gmail.com", "Port", 993, "Ssl", 0, "Starttls", ...) called at /usr/bin/dmarcts-report-parser.pl line 305 dmarcts-report-parser.pl: IMAP Failure: socket closed while reading data from server at /usr/bin/dmarcts-report-parser.pl line 305. use tls without verify servercert. connection to imap.gmail.com with Ssl => 0, User => xxxxxx@gmail.com, Ignoresizeerrors => 0 CRIT: Dmarc reports could not be parsed. Check your IMAP and MYSQL Settings.

servebeer commented 5 months ago

So, it appears that this is strictly a Google issue. I changed everything to point to my Apple email account and setup a App Password, and now it appears that everything is running. I did notice this error in the logs though:

2024/04/12 12:50PM ERR containers/recreate.go:88 > cannot find webhook by containerId | error="object not found inside the database" containerId=81fbb30bb7ec8ee4a4410133d60a4406a5e33a233da3d766a2038ced6bba15f1

servebeer commented 5 months ago

Spoke too soon:

image

servebeer commented 5 months ago

The quest continiues... I was never able to get it working with gmail, but I was able to get it working with Apple mail. Anyone else trying to get apple mail working, make sure that you use icloud.me for your domain!

maciejmaz commented 2 months ago

@servebeer I had the same issue, but it started to work correctly after setting the following variables:

- "PARSER_IMAP_SSL=1"
- "PARSER_IMAP_TLS=0"