Community Discussions and Support
GMail times out the first time each day

Bob,


I have heard back from David Harris. His comment and suggest is below. It is relevant to v4.80 and leads me to think that 4.81 may solve the problem.


In older versions of the program SNI was turned off by default; these days,
it's turned on by default.


Suggest the user create a file called TCPIP.OPT in the directory where
TCPIP.DLL is located containing the following lines:


-------------------------- Cut here ----------------------------
EnableSNI : 1
ModernTLS : 1
-------------------------- Cut here ----------------------------


If the file already exists, add these lines to it (replacing any existing versions
of the same lines).


Bob, I have heard back from David Harris. His comment and suggest is below. It is relevant to v4.80 and leads me to think that 4.81 may solve the problem. _In older versions of the program SNI was turned off by default; these days, it's turned on by default._ _Suggest the user create a file called TCPIP.OPT in the directory where TCPIP.DLL is located containing the following lines:_ _-------------------------- Cut here ----------------------------_ _EnableSNI : 1_ _ModernTLS : 1_ _-------------------------- Cut here ----------------------------_ _If the file already exists, add these lines to it (replacing any existing versions of the same lines)._

I set up the file just as directed with the values copied from David's post. I exited Pegasus and restarted. I wish I could say it fixed the problem, but unfortunately it did not. One silly question though. The file name for the TCPIP.OPT file I created was in upper case. The tcpip.dll filename is in lower case. Would that make any difference?


I got the predictable results I expected when I restarted Pegasus. The connection to pop.mail.yahoo.com failed with "OpenSSL supplied no extended diagnostic information". That usually happens after a restart. After the error is acknowledged, the rest of POP mail is collected successfully, even Gmail. If I don't shut down Pegasus and collect mail the next morning using the "Check your POP3 host" icon, the connection to Gmail fails. This scenario is pretty consistent.


Enclosed is the System Messages window after startup.
Protocol Error 022625 System Messages Window.pdf


I hate to keep piling on the problems, but I have the General option to "Preserve deleted messages until Pegasus closes" set on (box is checked). Whenever I restart Pegasus, the Deleted Messages folder is not emptied. Is there a time limit associated with that?


I set up the file just as directed with the values copied from David's post. I exited Pegasus and restarted. I wish I could say it fixed the problem, but unfortunately it did not. One silly question though. The file name for the TCPIP.OPT file I created was in upper case. The tcpip.dll filename is in lower case. Would that make any difference? I got the predictable results I expected when I restarted Pegasus. The connection to pop.mail.yahoo.com failed with "OpenSSL supplied no extended diagnostic information". That usually happens after a restart. After the error is acknowledged, the rest of POP mail is collected successfully, even Gmail. If I don't shut down Pegasus and collect mail the next morning using the "Check your POP3 host" icon, the connection to Gmail fails. This scenario is pretty consistent. Enclosed is the System Messages window after startup. [Protocol Error 022625 System Messages Window.pdf](serve/attachment&path=67bf7b73033ab) I hate to keep piling on the problems, but I have the General option to "Preserve deleted messages until Pegasus closes" set on (box is checked). Whenever I restart Pegasus, the Deleted Messages folder is not emptied. Is there a time limit associated with that?

I will report to David that his suggestion did not help.


Since the problem is associated SSL, I would go into you POP3 host configuration files for Gmail & Yahoo and switch the SSL setting to see if that makes a difference (eg: if STLS, switch to direct SSL connect). Grasping at straws here, again.


I hate to keep piling on the problems, but I have the General option to "Preserve deleted messages until Pegasus closes" set on (box is checked). Whenever I restart Pegasus, the Deleted Messages folder is not emptied. Is there a time limit associated with that?


When a Deleted Messages folder exists at the time the "Preserve deleted messages until Pegasus closes" option is set, it will not be deleted on close. That is likely what has happened to you. You will need to manually delete it. It will be recreated on next delete, and then should be removed during future shutdowns.


I will report to David that his suggestion did not help. Since the problem is associated SSL, I would go into you POP3 host configuration files for Gmail & Yahoo and switch the SSL setting to see if that makes a difference (eg: if STLS, switch to direct SSL connect). Grasping at straws here, again. [quote="pid:57432, uid:26261"]I hate to keep piling on the problems, but I have the General option to "Preserve deleted messages until Pegasus closes" set on (box is checked). Whenever I restart Pegasus, the Deleted Messages folder is not emptied. Is there a time limit associated with that?[/quote] When a Deleted Messages folder exists at the time the "Preserve deleted messages until Pegasus closes" option is set, it will not be deleted on close. That is likely what has happened to you. You will need to manually delete it. It will be recreated on next delete, and then should be removed during future shutdowns.

Just another idea - altough it's very unlikely: What is your Winsock setting on Tools > Options > Advanced settings > Load Windows Internet Services (): It's recommended to enable Always.


Just another idea - altough it's very unlikely: What is your Winsock setting on _Tools > Options > Advanced settings > Load Windows Internet Services ()_: It's recommended to enable _Always_.
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

Thanks for these suggestions.


Michael,
The "Load Windows Internet Services" option is already set to Always.


Brian,
Just for fun I tried to set the "via STLS command" option on both Gmail and Yahoo (doing so changed the port # to 110). I did each host individually. I then tried the File/Selective Mail Download and received a 10060 error for each host.
POP3 error: -ERR Cannot connect to POP server 74.125.137.109 (74.125.137.109:110), connect error 10060
POP3 error: -ERR Cannot connect to POP server 66.163.170.35 (66.163.170.35:110), connect error 10060
I switched both back to Direct SSL (port 995) and they connect successfully using the File/Selective Mail Download .


As for the Deleted Message Folder, - my bad! I have the Advanced setting "Deleted messages folder persists between sessions" option marked which I believe overrides the "Preserve deleted messages until Pegasus closes" option. Sorry for wasting your time on that.


Thanks for these suggestions. Michael, The "Load Windows Internet Services" option is already set to Always. Brian, Just for fun I tried to set the "via STLS command" option on both Gmail and Yahoo (doing so changed the port # to 110). I did each host individually. I then tried the File/Selective Mail Download and received a 10060 error for each host. POP3 error: -ERR Cannot connect to POP server 74.125.137.109 (74.125.137.109:110), connect error 10060 POP3 error: -ERR Cannot connect to POP server 66.163.170.35 (66.163.170.35:110), connect error 10060 I switched both back to Direct SSL (port 995) and they connect successfully using the File/Selective Mail Download . As for the Deleted Message Folder, - my bad! I have the Advanced setting "Deleted messages folder persists between sessions" option marked which I believe overrides the "Preserve deleted messages until Pegasus closes" option. Sorry for wasting your time on that.

Just to follow up on the above. After I successfully connected to the Yahoo and Gmail servers as described above, I used the "Check your POP3 host for new mail" icon which checks Yahoo, Gmail, Spectrum and Yahoo again in that order. The first Yahoo connection was successful, Gmail failed with the messages below. Spectrum and 2nd Yahoo connections also succeeded.


08:24:02.244: --- 27 Feb 2025, 8:24:02.244 ---
08:24:02.260: Connect to 'pop.gmail.com', timeout 30 seconds.
08:24:55.450: [!] OpenSSL reported error -1/5 during handshake - diagnostics follow:
08:24:55.450: [!] -------------------------------------------------------------------------
08:24:55.450: [!] * OpenSSL supplied no extended diagnostic information.
08:24:55.450: [!] -------------------------------------------------------------------------


Just to follow up on the above. After I successfully connected to the Yahoo and Gmail servers as described above, I used the "Check your POP3 host for new mail" icon which checks Yahoo, Gmail, Spectrum and Yahoo again in that order. The first Yahoo connection was successful, Gmail failed with the messages below. Spectrum and 2nd Yahoo connections also succeeded. 08:24:02.244: --- 27 Feb 2025, 8:24:02.244 --- 08:24:02.260: Connect to 'pop.gmail.com', timeout 30 seconds. 08:24:55.450: [!] OpenSSL reported error -1/5 during handshake - diagnostics follow: 08:24:55.450: [!] ------------------------------------------------------------------------- 08:24:55.450: [!] *** OpenSSL supplied no extended diagnostic information. 08:24:55.450: [!] -------------------------------------------------------------------------

Just for fun I tried to set the "via STLS command" option on both Gmail and Yahoo (doing so changed the port # to 110)


Changing the port would definitely cause it to fail.


I should have tested STLS with Gmail before suggesting it. I have since done so and it doesn't work. I have asked David about the OpenSSL error, wondering if it is separate from the peer connection issue. I'll let you know of any response.


[quote="pid:57435, uid:26261"]Just for fun I tried to set the "via STLS command" option on both Gmail and Yahoo (doing so changed the port # to 110)[/quote] Changing the port would definitely cause it to fail. I should have tested STLS with Gmail before suggesting it. I have since done so and it doesn't work. I have asked David about the OpenSSL error, wondering if it is separate from the peer connection issue. I'll let you know of any response.

Sorry for jumping into the thread so lately.


The SMTP 10060 error indicates that the sending server did not receive a response from the recipient server within the timeout interval. The more common causes are:


  • Invalid SMTP host or port.
    • 587 TLS
    • 465 SSL
  • Invalid SMTP authentication.
  • Network connectivity issues on the sending server.

POP3 uses port 995 (SSL or TLS)


IIRC, setting Pmail to work with OAUTH2 takes care of everything.


Sorry for jumping into the thread so lately. The SMTP 10060 error indicates that the sending server did not receive a response from the recipient server within the timeout interval. The more common causes are: - Invalid SMTP host or port. - 587 TLS - 465 SSL - Invalid SMTP authentication. - Network connectivity issues on the sending server. POP3 uses port 995 (SSL or TLS) IIRC, setting Pmail to work with OAUTH2 takes care of everything.

-- Euler

Pegasus Mail 4.81.1154 Windows 7 Ultimate
IERenderer: 2.7.2.2 AttachMenu: 1.0.2.0
PMDebug: 2.5.8.37 BearHTML 4.9.9.6

edited Feb 27 at 11:53 pm

Upgrade to the 4.81 public beta. Backup your entire \PMAIL directory first.

I'm very confident that v4.81 will solve the problem. Many Gmail accounts still working non-OAUTH2, either with an APP password or just a password until the day your client stops working. There's no warning. Not really, Gmail sent me a message saying that they would change to the OAUTH2 in the near future and that was all. Here it took something like 3 years or so. My wife's account was still running fine with old settings when I made the change to the OAUTH2 process.


[quote="pid:57429, uid:28772"]Upgrade to the 4.81 public beta. Backup your entire \PMAIL directory first.[/quote] I'm very confident that v4.81 will solve the problem. Many Gmail accounts still working non-OAUTH2, either with an APP password or just a password until the day your client stops working. There's no warning. Not really, Gmail sent me a message saying that they would change to the OAUTH2 in the near future and that was all. Here it took something like 3 years or so. My wife's account was still running fine with old settings when I made the change to the OAUTH2 process.

-- Euler

Pegasus Mail 4.81.1154 Windows 7 Ultimate
IERenderer: 2.7.2.2 AttachMenu: 1.0.2.0
PMDebug: 2.5.8.37 BearHTML 4.9.9.6

I'm very confident that v4.81 will solve the problem.


I have been hesitant to state that because my v4.81 POPs Gmail account using an app password without issue. I don't know anything about SSL so am clueless whether OAUTH2 authentication would make a difference.


David commented on the last posted log content with the following:
"Error 5 is the error OpenSSL reports when it has no idea
what happened (I'm not kidding about that, either). There's something really
off happening in the protocol negotiation, though."


That was all so I think he is as clueless as the rest of us. We know that 4.80 normally works fine for accessing Gmail with an app password. We just don't know what is causing the problem for Bob.


[quote="pid:57439, uid:2194"]I'm very confident that v4.81 will solve the problem.[/quote] I have been hesitant to state that because my v4.81 POPs Gmail account using an app password without issue. I don't know anything about SSL so am clueless whether OAUTH2 authentication would make a difference. David commented on the last posted log content with the following: _"Error 5 is the error OpenSSL reports when it has no idea what happened (I'm not kidding about that, either). There's something really off happening in the protocol negotiation, though."_ That was all so I think he is as clueless as the rest of us. We know that 4.80 normally works fine for accessing Gmail with an app password. We just don't know what is causing the problem for Bob.

I'm confident the problem is on Gmail's side. What I'm assuming is that the reported "Invalid SMTP authentication" could be "Invalid OAUTH2 authentication." As we know, OAUTH2 is not a standardized protocol, but a private authentication method. As the mail server doesn't know that, throws the default message.


Maybe I'm overshooting this but a fair test to know if OP's app password is still valid would be retrieving messages via POP3. If it is working to get must work to send.


I'm confident the problem is on Gmail's side. What I'm assuming is that the reported "Invalid SMTP authentication" could be "Invalid OAUTH2 authentication." As we know, OAUTH2 is not a standardized protocol, but a private authentication method. As the mail server doesn't know that, throws the default message. Maybe I'm overshooting this but a fair test to know if OP's app password is still valid would be retrieving messages via POP3. If it is working to get must work to send.

-- Euler

Pegasus Mail 4.81.1154 Windows 7 Ultimate
IERenderer: 2.7.2.2 AttachMenu: 1.0.2.0
PMDebug: 2.5.8.37 BearHTML 4.9.9.6

I'm confident the problem is on Gmail's side


I agree except for the fact that it has happened with yahoo. Something is off with the "protocol negotiation" (David's words). IDK whether this is solely a Pegasus Mail thing or whether anything in the OS is involved.


What I'm assuming is that the reported "Invalid SMTP authentication" could be "Invalid OAUTH2 authentication."


OP is running v4.80 so no OAUTH2 involved. I don't have much confidence that v4.81 with OAUTH2 will fix the problem. David has not mentioned upgrading in my correspondence with him. That said, I still recommend the 4.81 beta, not only for Gmail OAUTH2, but also for the bug fixes and new copyself format options.


[quote="pid:57441, uid:2194"]I'm confident the problem is on Gmail's side[/quote] I agree except for the fact that it has happened with yahoo. Something is off with the "protocol negotiation" (David's words). IDK whether this is solely a Pegasus Mail thing or whether anything in the OS is involved. [quote="pid:57441, uid:2194"]What I'm assuming is that the reported "Invalid SMTP authentication" could be "Invalid OAUTH2 authentication."[/quote] OP is running v4.80 so no OAUTH2 involved. I don't have much confidence that v4.81 with OAUTH2 will fix the problem. David has not mentioned upgrading in my correspondence with him. That said, I still recommend the 4.81 beta, not only for Gmail OAUTH2, but also for the bug fixes and new copyself format options.

OK, I decided to take the plunge this morning. I backed up the complete PMAIL folder, insured that IERenderer (whatever that is?) was current at 2.7.2.2 and installed V4.81. It was a quick and easy install. Below is the "About" info on the new release.
Pegasus Mail for Microsoft Windows
Copyright (C) 1992-2022, David Harris, all rights reserved
Electronic mail to support@pmail.gen.nz.


WinPMail version: Version 4.81.1154, Jan 10 2023, build ID 1154
Language resources: Standard UK English resources (EN,0,LL)
Extension Manager version: 1.14
Operating mode: Standalone
User name and ID: Admin, 0
Windows version: 6.2
Windows flag word: 0
WINPMAIL.EXE directory: C:\PMAIL\Programs
Home mailbox location: C:\PMAIL\MAIL\Admin
New mailbox location: C:\PMAIL\MAIL\Admin
TMP environment variable: C:\Users\Bob\AppData\Local\Temp
TEMP environment variable: C:\Users\Bob\AppData\Local\Temp
LAN-based SMTP support: N, N, N
NetWare MHS support: N, N, N
Built-in TCP/IP support: Enabled


  • WINSOCK version: WinSock 2.0
  • WINSOCK path: WSOCK32.DLL

Commandline: -roam -A -ID All_Mail
Active -Z options: 32800
PMR variable: (None)
PML variable: (None)
MAI variable: (None)
NB variable: (None)
Autofiltering folders: 0 (0 active, 0 inactive)
Last new mail count: 0
Message size soft limit: 0 bytes
Message size hard limit: 0 bytes
Attachment size soft limit: 0 bytes
Attachment size hard limit: 0 bytes


Good news so far. When I started Pegasus the first time after the new install - no timeouts on any of the servers. With 4.80 I would have expected a connection timeout on the first server - Yahoo, but it connected right away. All connections seemed quick, just following the status line at the bottom. Maybe it's because it's early Sunday morning and server traffic is low but I suspect the new release is a better explanation. I then tried the "Check POP3 host" icon and same thing - no connection failures, not even Gmail. The only thing I see so far is the Connection message in the TCPlog still says 30 seconds but there are no 30 second timeout values set in any of my network definitions.


I'll continue to watch the performance of 4.81 to see if the OpenSSL gremlin comes back, but for now life is good.


Sincere thanks for all your help on this. Will keep you posted.


When will we know when 4.81 become official?


OK, I decided to take the plunge this morning. I backed up the complete PMAIL folder, insured that IERenderer (whatever that is?) was current at 2.7.2.2 and installed V4.81. It was a quick and easy install. Below is the "About" info on the new release. Pegasus Mail for Microsoft Windows Copyright (C) 1992-2022, David Harris, all rights reserved Electronic mail to support@pmail.gen.nz. WinPMail version: Version 4.81.1154, Jan 10 2023, build ID 1154 Language resources: Standard UK English resources (EN,0,LL) Extension Manager version: 1.14 Operating mode: Standalone User name and ID: Admin, 0 Windows version: 6.2 Windows flag word: 0 WINPMAIL.EXE directory: C:\PMAIL\Programs Home mailbox location: C:\PMAIL\MAIL\Admin New mailbox location: C:\PMAIL\MAIL\Admin TMP environment variable: C:\Users\Bob\AppData\Local\Temp TEMP environment variable: C:\Users\Bob\AppData\Local\Temp LAN-based SMTP support: N, N, N NetWare MHS support: N, N, N Built-in TCP/IP support: Enabled - WINSOCK version: WinSock 2.0 - WINSOCK path: WSOCK32.DLL Commandline: -roam -A -ID All_Mail Active -Z options: 32800 PMR variable: (None) PML variable: (None) MAI variable: (None) NB variable: (None) Autofiltering folders: 0 (0 active, 0 inactive) Last new mail count: 0 Message size soft limit: 0 bytes Message size hard limit: 0 bytes Attachment size soft limit: 0 bytes Attachment size hard limit: 0 bytes Good news so far. When I started Pegasus the first time after the new install - no timeouts on any of the servers. With 4.80 I would have expected a connection timeout on the first server - Yahoo, but it connected right away. All connections seemed quick, just following the status line at the bottom. Maybe it's because it's early Sunday morning and server traffic is low but I suspect the new release is a better explanation. I then tried the "Check POP3 host" icon and same thing - no connection failures, not even Gmail. The only thing I see so far is the Connection message in the TCPlog still says 30 seconds but there are no 30 second timeout values set in any of my network definitions. I'll continue to watch the performance of 4.81 to see if the OpenSSL gremlin comes back, but for now life is good. Sincere thanks for all your help on this. Will keep you posted. When will we know when 4.81 become official?

Good news so far. When I started Pegasus the first time after the new install - no timeouts on any of the servers


Yea!


TCPlog still says 30 seconds but there are no 30 second timeout values set in any of my network definitions.


I would love to know where this is coming from but I know you have spent on lot of time resolving the connection issue so perhaps start a new discussion if and when you want to pursue it.


When will we know when 4.81 become official?

I'm sure it will be announced in a new flash and someone will post about it. I will be attentive to that happening.


[quote="pid:57447, uid:26261"]Good news so far. When I started Pegasus the first time after the new install - no timeouts on any of the servers[/quote] Yea! [quote="pid:57447, uid:26261"]TCPlog still says 30 seconds but there are no 30 second timeout values set in any of my network definitions.[/quote] I would love to know where this is coming from but I know you have spent on lot of time resolving the connection issue so perhaps start a new discussion if and when you want to pursue it. [quote="pid:57447, uid:26261"]When will we know when 4.81 become official?[/quote] I'm sure it will be announced in a new flash and someone will post about it. I will be attentive to that happening.
12
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft