Email SMTP: Connection Closed
-
wrote on Jul 16, 2024, 4:42 PM last edited by
My SMTP connections are working for the same domains on my two other Cloudrons (home servers), just not on this new Hetzner VPS that I migrated yesterday.
-
-
wrote on Jul 16, 2024, 4:53 PM last edited by
@joseph this is the result of the swak command
=== Trying smtp.mailgun.org:587... === Connected to smtp.mailgun.org. *** Remote host closed connection unexpectedly.
-
@humptydumpty right, that's the bug ... Your server provider for some inexplicable reason has closed outbound port 587. You have to ask their support to open it.
-
wrote on Jul 16, 2024, 5:06 PM last edited by humptydumpty Jul 16, 2024, 6:37 PM
Thanks Joseph. I emailed Hetzner and will report back.
-
wrote on Jul 16, 2024, 6:37 PM last edited by
-
@humptydumpty issue is outbound port and not inbound port
-
wrote on Jul 16, 2024, 6:45 PM last edited by
Noted. I'm guessing this will take till tomorrow at least if Hetzner's support is in Germany.
-
wrote on Jul 16, 2024, 9:22 PM last edited by
Generally Hetzner does not block outgoing ports except 25 for new customers until the next month, sometimes after two months after payment of the invoice. But blocked ports of other there is no possibility well unless you have set in the external firewall ?
-
Generally Hetzner does not block outgoing ports except 25 for new customers until the next month, sometimes after two months after payment of the invoice. But blocked ports of other there is no possibility well unless you have set in the external firewall ?
wrote on Jul 16, 2024, 9:44 PM last edited by humptydumpty Jul 16, 2024, 9:45 PM@matix131997 no, I didn’t block anything in the Hetzner firewall. I did try to open port 25 and then disabled that rule but the email/smtp issue was there beforehand as it’s what prompted me to try to open the port only to be told that port 25 isn’t needed for smtp.
-
wrote on Jul 16, 2024, 10:32 PM last edited by
Asked ChatGPT for command to test via SSH. Here are the results:
telnet smtp.mydomain.com 587 >> Trying valid-hetzner-server-ip... Connected to smtp.mydomain.com.
nc -vz smtp.mydomain.com 587 >> Connection to smtp.mydomain.com (correct-server-ip) 587 port [tcp/submission] succeeded!
nslookup smtp.mydomain.com >> Connection to smtp.mydomain.com (correct-server-ip) 587 port [tcp/submission] succeeded! Server: 127.0.0.53 Address: 127.0.0.53#53 Non-authoritative answer: Name: smtp.mydomain.com (masked) Address: my-server-ip (masked)
-
wrote on Jul 17, 2024, 10:49 AM last edited by humptydumpty Jul 17, 2024, 10:52 AM
I received a reply from Hetzner support. I barely had any sleep during the past few days because of this migration so, I'm not entirely sure if I'm reading this right. Maybe I'm dreaming. But, here goes:
Dear Client Thank you for your request. Unfortunately, some GeoIP databases incorrectly locate some of our IPs in Iran. We cannot influence these databases. If this leads to issues for you, please create a Snapshot of the server with the incorrect IP location. Then create a new server with this Snapshot. You can then delete the server with the incorrect IP location. Mit freundlichen Grüßen / Kind regards
WTF. I signed up for a vDedi server in Ashburn, US. I'm gonna get my a55 probed by the US gov now. Thanks Hetzner.
-
wrote on Jul 17, 2024, 10:53 AM last edited by humptydumpty Jul 17, 2024, 11:01 AMThis post is deleted!
-
wrote on Jul 17, 2024, 11:44 AM last edited by
I enabled Dynamic DNS in Cloudron. Then, I turned off the VPS, deleted its IP's (ipv4 and ipv6) and reassigned new ones. Manually updated DNS record of my. to point to the new domain and it came up in 2 mins. Resynced DNS and it looks like the SMTP issue is fixed.
-
-