Content
You are here:
Unable to send SMTP test emails
Added by Ken Wheatley about 1 year ago
Apologies for being the ten millionth person to ask but I can't get test emails to work. The symptoms are a TCP timeout (An error occurred while sending mail (Timeout to open TCP connection to mail.birchanger.org:465 (exceeds 5 seconds))).
I am trying to send through my ISP, Zen Internet. SMTP works using the same credentials from the mail client on my PC. I have tried all combinations of login settings from the email admin screen.
The SMTP server can be pinged (by name) from the Openproject server. Server is running on a dedicated Ubuntu 22.04 VPS at Hetzner with firewall disabled.
Grateful for any help in what must be a simple thing to fix.
Replies (4)
No need to apologize, email configuration issues can be tricky, and it's a common problem. It seems like you're trying to configure email settings in OpenProject, and you're encountering a timeout error when attempting to send test emails. Here are some steps to troubleshoot and potentially resolve the issue:
Check SMTP Server and Port: Ensure that you are using the correct SMTP server and port for Zen Internet's email service. You mentioned that SMTP works from your PC, so make sure you're using the same server and port in OpenProject.
SSL/TLS Settings: Depending on your email provider's requirements, you may need to enable or disable SSL/TLS encryption. Common ports include 465 for SSL/TLS and 587 for STARTTLS. Make sure your OpenProject email configuration matches the settings that work on your PC.
Credentials: Double-check that you've entered your email username and password correctly in OpenProject's email configuration. Sometimes, incorrect credentials can lead to timeouts.
Firewall and Network Settings: Even though you mentioned that the firewall is disabled on your VPS, double-check that there are no network-level restrictions preventing the VPS from connecting to the SMTP server. Ensure that outbound connections on port 465 (or the appropriate port) are allowed. qr code
Email configuration issues can vary based on the specific setup and provider, so it may require some trial and error and collaboration with your hosting provider, email provider, or OpenProject support to pinpoint and resolve the issue.
Thank you for your helpful reply. I THINK I've tried all the above but I will methodically go through it all again as it's certainly not impossible that I've missed something.
Got there! I created a new email account and tried every possible combination of port/ssl/smarttls until, to my surprise, I saw the message email sent.
Thank you for your help.
First you can check your SMTP connection information. sometime server firewal can block the connection also. So you should check the infomation from different server. SMTP Tester: https://www.techinblood.com/smtp-tester/