-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SMTP Error: Could not connect to SMTP host. After every 10 -14 days. #2195
Comments
That's failing after STARTTLS, which suggests your local openssl has issues, most likely that you need to update your CA certificate bundle. That said, the regularity of this failure is odd. I recommend double checking using openssl and testssl.sh to see where it's coming from. |
Forgot to say - this could be caused by your hosting provider intermittently intercepting your SMTP traffic. |
Thanks a lot @Synchro ! I will try updating the CA certificates and talk to my hosting provider. But I'm still confused and worried about the regularity of this issue. I will update this thread if I find the solution. |
@Synchro Again I got the same error today ! Cannot find what the issue is here. Same error log as before. I am currently using the app password for a gmail account with 2fa enabled but that shouldn't be a problem cause it has been working fine for 14 days but now I have the problem again. Can you suggest any other solutions to this please. Here is the error log for today.
|
This has nothing to do with authentication or 2FA. It's failing when establishing a TLS session which happens before it gets as far as auth. This isn't caused by PHPMailer – it must be something in your environment because PHPMailer just uses whatever is there. The main thing this needs is #1405, but PHP doesn't make it especially easy to find underlying causes of TLS errors. |
That combination is fine. SMTP+STARTTLS can coexist on ports that don't use encryption. As you can see in the transcript, it connects without encryption to a regular SMTP port, then starts it with STARTTLS (which you can see listed amongst the capabilities offered by the server). |
Weird Right. I get this error every 10-14 days. After I change my smtp host it works fine again for 11-14 days and then again gives the same error. It requires the same solution of switching host from google to cpanel and vice-versa everytime .
I have noticed this for about 2 months now and cannot find a solution anywhere apart from changing the smtp host everytime.
I'm going crazy. Please help!
Here is the debug for smtp host gmail:
Here it is for cpanel webmail:
The text was updated successfully, but these errors were encountered: