Thanks again to especially Brian and @msetzerii for their input.
I tried enabling the Internet session logging and captured a couple of session logs for one of my Gmail mailboxes; the first attempt to download the 18 waiting messages resulted in the session bombing out before even the first message was downloaded, Here's the session log for that attempt:
22:54:06.649: --- 9 Oct 2025, 22:54:06.649 ---
22:54:06.649: Connect to 'pop.gmail.com', timeout 90 seconds, flags 16842753.
22:54:07.659: [] Setting SNI hostname to 'pop.gmail.com'
22:54:07.681: [] SSL/TLS session established
22:54:07.681: [] TLS_AES_256_GCM_SHA384, TLSv1.3, Kx=any, Au=any, Enc=AESGCM(256), Mac=AEAD<lf>
22:54:07.683: [] Peer's certificate name is '/CN=pop.gmail.com'.
22:54:07.691: >> +OK Gpop ready for requests from 90.155.35.170 cdcc0902adbc2-3b00cc95ab5mb56332354d76<cr><lf>
22:54:07.691: << AUTH XOAUTH2 dXNlcj1vdGhlcmFtZEBnbWFpbC5jb20BYXV0aD1CZWFyZXIgeWEyOS5hMEFRUV9CRFJoaE1iM3l5bVJJd0RyRXBmRXVQZ0k5YUNGaUlJVWFLeWNfa1RDalFvZ2pfYkNyRjBtd0t6ZUk0RGxBYTBsNE5CM1ZFOGVtWW03WnhiZlpHN3M0T1JTS1ctOUNULVVqcHhSQ2RseE5pdklieVdtbnUyaXpGclRZdGFvZkFUbEJrVVluN25pdWtuSlV1RDBBckVTaXRiNzc0bTN0MktaOU9TM1Z3eGJJWmFRdXdadzgweHphd3VpZTZGMFh3My1MZHlHalFhQ2dZS0FUY1NBUllTRlFIR1gyTWlval9GZS1HUndZUHpxOWkybUo3NHZBMDIwOQEB<cr><lf>
22:54:08.113: >> +OK Welcome.<cr><lf>
22:54:08.119: << STAT<cr><lf>
22:54:08.236: >> +OK 18 1426684<cr><lf>
22:54:08.236: << LIST<cr><lf>
22:54:08.349: >> +OK 18 messages (1426684 bytes)<cr><lf>
22:54:08.349: >> 1 4806<cr><lf>
22:54:08.349: >> 2 4806<cr><lf>
22:54:08.349: >> 3 15665<cr><lf>
22:54:08.349: >> 4 69597<cr><lf>
22:54:08.349: >> 5 723992<cr><lf>
22:54:08.349: >> 6 59832<cr><lf>
22:54:08.349: >> 7 100855<cr><lf>
22:54:08.349: >> 8 83208<cr><lf>
22:54:08.349: >> 9 5367<cr><lf>
22:54:08.349: >> 10 5382<cr><lf>
22:54:08.349: >> 11 77454<cr><lf>
22:54:08.349: >> 12 56641<cr><lf>
22:54:08.349: >> 13 5372<cr><lf>
22:54:08.349: >> 14 5377<cr><lf>
22:54:08.349: >> 15 51430<cr><lf>
22:54:08.349: >> 16 51430<cr><lf>
22:54:08.349: >> 17 89791<cr><lf>
22:54:08.349: >> 18 15679<cr><lf>
22:54:08.349: >> .<cr><lf>
22:54:08.362: << RETR 1<cr><lf>
22:54:08.483: >> +OK message follows<cr><lf>
22:54:08.492: 26: SSL_read returned zero (socket was closed)
22:54:08.492: >>
22:54:15.457: << QUIT<cr><lf>
22:54:15.470: 26: SSL_read returned zero (socket was closed)
22:54:15.470: >>
22:54:15.470: 28: Error 6:0 shutting down OpenSSL session.
22:54:15.470: [!] OpenSSL reported a shutdown error - diagnostics follow:
22:54:15.470: [!] -------------------------------------------------------------------------
22:54:15.470: [!] OpenSSL supplied no extended diagnostic information.
22:54:15.470: [!] This usually indicates one of the following:
22:54:15.470: [!] - The connection was improperly closed by the peer.
22:54:15.470: [!] - A Network error external to this system occurred.
22:54:15.470: [!] -------------------------------------------------------------------------
22:54:15.470: --- Connection closed at 9 Oct 2025, 22:54:15.470. ---
22:54:15.470:
As the log shows, there seems to be something odd happening with SSL that's causing the connection to be closed by the peer, which is presumably pop.gmail.com.
A (very) short time later a second attempt to download the 18 messages waiting in the mailbox resulted in a few messages being downloaded; here's the final part of the session log for that attempt:
22:54:30.919: >> +OK marked for deletion<cr><lf>
22:54:30.919: << RETR 6<cr><lf>
22:54:31.059: >> +OK message follows<cr><lf>
22:54:31.061: 26: SSL_read returned zero (socket was closed)
22:54:31.064: >>
22:54:35.983: << QUIT<cr><lf>
22:54:35.995: 26: SSL_read returned zero (socket was closed)
22:54:35.995: >>
22:54:35.995: 28: Error 6:0 shutting down OpenSSL session.
22:54:35.995: [!] OpenSSL reported a shutdown error - diagnostics follow:
22:54:35.995: [!] -------------------------------------------------------------------------
22:54:35.995: [!] OpenSSL supplied no extended diagnostic information.
22:54:35.995: [!] This usually indicates one of the following:
22:54:35.995: [!] - The connection was improperly closed by the peer.
22:54:35.995: [!] - A Network error external to this system occurred.
22:54:35.995: [!] -------------------------------------------------------------------------
22:54:35.995: --- Connection closed at 9 Oct 2025, 22:54:35.995. ---
22:54:35.995:
Again this seems to show that the session was closed because of an SSL issue, so the question is what to do to overcome the problem.
I'll try reverting to v4.81-pb3 and see if the SSL issues persist...!
To answer Brian's question, a subsequent POP3 download attempt after the error has occurred usually doesn't work although sometimes the download gets a bit further through the list of waiting messages before the POP3 session bombs out (again).
--
Martin
Thanks again to especially Brian and @msetzerii for their input.
I tried enabling the Internet session logging and captured a couple of session logs for one of my Gmail mailboxes; the first attempt to download the 18 waiting messages resulted in the session bombing out before even the first message was downloaded, Here's the session log for that attempt:
22:54:06.649: --- 9 Oct 2025, 22:54:06.649 ---
22:54:06.649: Connect to 'pop.gmail.com', timeout 90 seconds, flags 16842753.
22:54:07.659: [*] Setting SNI hostname to 'pop.gmail.com'
22:54:07.681: [*] SSL/TLS session established
22:54:07.681: [*] TLS_AES_256_GCM_SHA384, TLSv1.3, Kx=any, Au=any, Enc=AESGCM(256), Mac=AEAD<lf>
22:54:07.683: [*] Peer's certificate name is '/CN=pop.gmail.com'.
22:54:07.691: >> +OK Gpop ready for requests from 90.155.35.170 cdcc0902adbc2-3b00cc95ab5mb56332354d76<cr><lf>
22:54:07.691: << AUTH XOAUTH2 dXNlcj1vdGhlcmFtZEBnbWFpbC5jb20BYXV0aD1CZWFyZXIgeWEyOS5hMEFRUV9CRFJoaE1iM3l5bVJJd0RyRXBmRXVQZ0k5YUNGaUlJVWFLeWNfa1RDalFvZ2pfYkNyRjBtd0t6ZUk0RGxBYTBsNE5CM1ZFOGVtWW03WnhiZlpHN3M0T1JTS1ctOUNULVVqcHhSQ2RseE5pdklieVdtbnUyaXpGclRZdGFvZkFUbEJrVVluN25pdWtuSlV1RDBBckVTaXRiNzc0bTN0MktaOU9TM1Z3eGJJWmFRdXdadzgweHphd3VpZTZGMFh3My1MZHlHalFhQ2dZS0FUY1NBUllTRlFIR1gyTWlval9GZS1HUndZUHpxOWkybUo3NHZBMDIwOQEB<cr><lf>
22:54:08.113: >> +OK Welcome.<cr><lf>
22:54:08.119: << STAT<cr><lf>
22:54:08.236: >> +OK 18 1426684<cr><lf>
22:54:08.236: << LIST<cr><lf>
22:54:08.349: >> +OK 18 messages (1426684 bytes)<cr><lf>
22:54:08.349: >> 1 4806<cr><lf>
22:54:08.349: >> 2 4806<cr><lf>
22:54:08.349: >> 3 15665<cr><lf>
22:54:08.349: >> 4 69597<cr><lf>
22:54:08.349: >> 5 723992<cr><lf>
22:54:08.349: >> 6 59832<cr><lf>
22:54:08.349: >> 7 100855<cr><lf>
22:54:08.349: >> 8 83208<cr><lf>
22:54:08.349: >> 9 5367<cr><lf>
22:54:08.349: >> 10 5382<cr><lf>
22:54:08.349: >> 11 77454<cr><lf>
22:54:08.349: >> 12 56641<cr><lf>
22:54:08.349: >> 13 5372<cr><lf>
22:54:08.349: >> 14 5377<cr><lf>
22:54:08.349: >> 15 51430<cr><lf>
22:54:08.349: >> 16 51430<cr><lf>
22:54:08.349: >> 17 89791<cr><lf>
22:54:08.349: >> 18 15679<cr><lf>
22:54:08.349: >> .<cr><lf>
22:54:08.362: << RETR 1<cr><lf>
22:54:08.483: >> +OK message follows<cr><lf>
22:54:08.492: 26: SSL_read returned zero (socket was closed)
22:54:08.492: >>
22:54:15.457: << QUIT<cr><lf>
22:54:15.470: 26: SSL_read returned zero (socket was closed)
22:54:15.470: >>
22:54:15.470: 28: Error 6:0 shutting down OpenSSL session.
22:54:15.470: [!] OpenSSL reported a shutdown error - diagnostics follow:
22:54:15.470: [!] -------------------------------------------------------------------------
22:54:15.470: [!] *** OpenSSL supplied no extended diagnostic information.
22:54:15.470: [!] *** This usually indicates one of the following:
22:54:15.470: [!] *** - The connection was improperly closed by the peer.
22:54:15.470: [!] *** - A Network error external to this system occurred.
22:54:15.470: [!] -------------------------------------------------------------------------
22:54:15.470: --- Connection closed at 9 Oct 2025, 22:54:15.470. ---
22:54:15.470:
As the log shows, there seems to be something odd happening with SSL that's causing the connection to be closed by the peer, which is presumably pop.gmail.com.
A (very) short time later a second attempt to download the 18 messages waiting in the mailbox resulted in a few messages being downloaded; here's the final part of the session log for that attempt:
22:54:30.919: >> +OK marked for deletion<cr><lf>
22:54:30.919: << RETR 6<cr><lf>
22:54:31.059: >> +OK message follows<cr><lf>
22:54:31.061: 26: SSL_read returned zero (socket was closed)
22:54:31.064: >>
22:54:35.983: << QUIT<cr><lf>
22:54:35.995: 26: SSL_read returned zero (socket was closed)
22:54:35.995: >>
22:54:35.995: 28: Error 6:0 shutting down OpenSSL session.
22:54:35.995: [!] OpenSSL reported a shutdown error - diagnostics follow:
22:54:35.995: [!] -------------------------------------------------------------------------
22:54:35.995: [!] *** OpenSSL supplied no extended diagnostic information.
22:54:35.995: [!] *** This usually indicates one of the following:
22:54:35.995: [!] *** - The connection was improperly closed by the peer.
22:54:35.995: [!] *** - A Network error external to this system occurred.
22:54:35.995: [!] -------------------------------------------------------------------------
22:54:35.995: --- Connection closed at 9 Oct 2025, 22:54:35.995. ---
22:54:35.995:
Again this seems to show that the session was closed because of an SSL issue, so the question is what to do to overcome the problem.
I'll try reverting to v4.81-pb3 and see if the SSL issues persist...!
To answer Brian's question, a subsequent POP3 download attempt after the error has occurred usually doesn't work although sometimes the download gets a bit further through the list of waiting messages before the POP3 session bombs out (again).
--
Martin