• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/
  • On Plesk for Linux mod_status is disabled on upgrades to improve Apache security.
    This is a one-time operation that occurs during an upgrade. You can manually enable mod_status later if needed.

Question SMTP connection timeout

Harun

New Pleskian
Server operating system version
Debian 11
Plesk version and microupdate number
Plesk Obsidian 18.0.74 Update #3 Web Host Edition
I'm running wordpress sites on my Debian 11 cloud server. I'm trying to set up worpdress on mydomain1.com to send system emails using the email address [email protected] which is also set up on this same server. I am getting the error: SMTP Error: Could not connect to SMTP host. Failed to connect to server SMTP server error: Failed to connect to server SMTP code: 110 Additional SMTP info: Connection timed out

Host mydomain1.com
port 587
TLS

[email protected] is set up as "Do not deliver copies of forwarded emails to the Plesk mailbox "

Any ideas? Is there a complete step-by-step guide of how to set this up somewhere?
 
Hi Harun

There's probably an error in the SMTP settings I'm using in WordPress. Install the "WP MAIL SMTP" plugin in WordPress and try these settings under the "Other SMTP" option:
mail.mydomain1.com
Port: 465/SSL
Auto SSL/TLS Option: Off

These options are active for some of our clients.

Have a good day
 
Hi Harun

There's probably an error in the SMTP settings I'm using in WordPress. Install the "WP MAIL SMTP" plugin in WordPress and try these settings under the "Other SMTP" option:
mail.mydomain1.com
Port: 465/SSL
Auto SSL/TLS Option: Off

These options are active for some of our clients.

Have a good day
Unfortunately, I still receive:

SMTP Error: Could not connect to SMTP host. Failed to connect to server SMTP server error: Failed to connect to server SMTP code: 110 Additional SMTP info: Connection timed out

Host: mail.mydomain1.com
Port: 465
SMTPSecure: ssl
SMTPAutoTLS: bool(false)
SMTPAuth: bool(true)

Doesn't the timeout error likely mean that there is no server available to connect? I double-checked DNS to the best of my knowledge and used MX toolbox. I do get "SMTP Reverse DNS Mismatch" -- is this necessary or outdated? I do have multiple domains at this server/IP so I don't want smtp for mydomain2.com to stop working.

Thanks for your response!
 
Port 587 requires STARTSSL/STARTTLS, won't work on SSL/TLS. Options: change port to 465 or 25 (without SSL/TLS, you don't need that anyway if the connection stays on your own server).
Unfortunately, I get the same error on all three of those ports. My understanding of the timeout error is that it's not connecting to the server to begin with, which I thought means it's not at the point of requesting authorization for a port.

Thank you for your reply!
 
You can try "localhost" instead of the real hostname.
Unfortunately, I get an error using localhost.

ErrorInfo: SMTP Error: Could not connect to SMTP host. Failed to connect to server SMTP server error: Failed to connect to server
Host: localhost

Thank you for your reply!
 
It's either the host name or a ban on localhost IP connecting to the SMTP server. First try "localhost" instead of the public domain name.
 
It's either the host name or a ban on localhost IP connecting to the SMTP server. First try "localhost" instead of the public domain name.
Unfortunately, I get the same error using localhost. I checked trusted IP addresses in Fail2Ban, and 127.0.0.1/8 is included. Does that eliminate banned localhost IP as a theory, or should I investigate something else?
 
Hi @Harun ,

Let me add to @Bitpalast 's suggestion: I think it would be more logical to start with simple solutions and then move on to more complex ones.

1. Is the SMTP service active?
2. Is your email password correct? You can try resetting the password for the relevant email account via the Plesk panel and using the new password. (Test with the settings I initially suggested.)
3. If it still doesn't work, check where the MX records for the relevant domain are going on intodns.com.
4. If everything seems correct, is there a port restriction on the server's firewall or the hosting service?

Have a good day
 
I got this solved! The MX record was proxied in Cloudflare. Once I undid the proxy it worked.

Thank you very much to everyone who provided troubleshooting advice!
 
Back
Top