Can't send email through Zoho SMTP - 'Connection timed out'
Permalink
I am having an impossible time getting email to send out on a few of my sites. It does not send using either the "Default PHP Mailer" or via the Zoho SMTP servers (which I know work and I am specifying the correct information).
EDIT: Google SMTP works just fine
When testing the email settings in the dashboard, I receive this error (with both SMTP & PHP Mailer options):
This is on my own VPS running PHP 7 on Ubuntu 16.04. I have the php-mail package installed, and I receive no errors in the log when sending out emails or email tests (or any other time for that matter) However I haven't touched the default error log settings, maybe I should try increasing the log level?
This is happening on both versions 5.7.5.13 and 5.8.1.
It may be worth noting that I migrated both these instances from a shared hosting environment where they were originally installed with Softaculous. (mail did not work there either) They have been updated from older versions of 5.7 over the past year or 2
I have tried searching for this problem and have not found anything useful, so I'm really hoping someone can help me!
EDIT: Google SMTP works just fine
When testing the email settings in the dashboard, I receive this error (with both SMTP & PHP Mailer options):
The following error was found while trying to send the test email: Connection timed out
This is on my own VPS running PHP 7 on Ubuntu 16.04. I have the php-mail package installed, and I receive no errors in the log when sending out emails or email tests (or any other time for that matter) However I haven't touched the default error log settings, maybe I should try increasing the log level?
This is happening on both versions 5.7.5.13 and 5.8.1.
It may be worth noting that I migrated both these instances from a shared hosting environment where they were originally installed with Softaculous. (mail did not work there either) They have been updated from older versions of 5.7 over the past year or 2
I have tried searching for this problem and have not found anything useful, so I'm really hoping someone can help me!
Good idea! I did as you suggested (new C5 8.1 installation) and it still did not work. However I have learned a few more details after digging even deeper:
I switched to one of my Google accounts to test it, and it actually DOES work (on both new and old installations).
However it does not work with Zoho, which I am trying to use. I have SMTP enabled on the account, and have the same account set up on a mail client on my phone with the exact same settings, and SMTP works fine there, just not through C5.
Interestingly, I receive different error messages depending on whether or not I leave the Port field blank (despite the fact that Zoho uses standard SSL & TLS ports).
When I specify SSL w/port 465, or TLS w/port 587:
When I specify SSL or TLS with blank/default port field:
Also it seems odd that the PHP sendmail option also does not work. I get the error
despite the fact that I can send mail from the commandline just fine using sendmail. But really I'd rather get SMTP on Zoho working
I switched to one of my Google accounts to test it, and it actually DOES work (on both new and old installations).
However it does not work with Zoho, which I am trying to use. I have SMTP enabled on the account, and have the same account set up on a mail client on my phone with the exact same settings, and SMTP works fine there, just not through C5.
Interestingly, I receive different error messages depending on whether or not I leave the Port field blank (despite the fact that Zoho uses standard SSL & TLS ports).
When I specify SSL w/port 465, or TLS w/port 587:
Could not read from smtp.zoho.com
When I specify SSL or TLS with blank/default port field:
Connection timed out
Also it seems odd that the PHP sendmail option also does not work. I get the error
Unable to send mail: Unknown error
despite the fact that I can send mail from the commandline just fine using sendmail. But really I'd rather get SMTP on Zoho working
Make sure you're using the correct SMTP settings from Zoho:
Mail Server: smtp.zoho.com
Username: The email address of the Zoho EMAIL account including the domain name (i.e. someone@somewhere.com) AS FAR AS I KNOW. Zoho says: "The email address should match the email address/ aliases of the account, for which the authentication details are provided."
Password: Same password the above email uses to login to check email.
Encryption: SSL
Port: 465
That being said you probably already have the correct settings...
Can you check the hosting server your c5 site is on for error logs?
Mail Server: smtp.zoho.com
Username: The email address of the Zoho EMAIL account including the domain name (i.e. someone@somewhere.com) AS FAR AS I KNOW. Zoho says: "The email address should match the email address/ aliases of the account, for which the authentication details are provided."
Password: Same password the above email uses to login to check email.
Encryption: SSL
Port: 465
That being said you probably already have the correct settings...
Can you check the hosting server your c5 site is on for error logs?
As mentioned earlier, the logs for the sites in question are mostly blank (and do not generate any new errors when sending test emails)
And I am 100% sure I have the ports, encryption, and credentials correct. Additionally, I have just successfully done an email test send from this same server on the commandline (using swaks) just to make sure it wasn't something weird like an SPF issue or IP blacklist - the email came through just fine. I also have this set up on multiple other email clients and it works just fine, so I can only assume it's an issue with Concrete5 & Zoho.
This is odd! Does anyone actually have Zoho SMTP working fine on a modern version of Concrete5?
And I am 100% sure I have the ports, encryption, and credentials correct. Additionally, I have just successfully done an email test send from this same server on the commandline (using swaks) just to make sure it wasn't something weird like an SPF issue or IP blacklist - the email came through just fine. I also have this set up on multiple other email clients and it works just fine, so I can only assume it's an issue with Concrete5 & Zoho.
This is odd! Does anyone actually have Zoho SMTP working fine on a modern version of Concrete5?
Have you tried creating a new test installation to see if mail works?