I’m totally new to HestiaCP and I got setup my server for the first time. I’m planning to use my server as only Mail Server and I facing some issues with it.
Firstly, my hostname ssl was not issued and I tried to issue manually using HestiaCP (hCP) and it throw me an error. Moving on I setup my mail domain and using Cloudflare, I setup A records for webmail (webmail.krithiv.my.id) and mail (mail.krithiv.my.id) pointing towards my server with dns only configuration but it also throw me an error. ( I know it’s not necessary I did it anyway ) I pointed my main domain (Krithiv.my.id) towards the server and added as a website and tried anyway but still it failed.
But after a few minutes, if I try it, I receive the first error again.
If that is happening when Let’s Encrypt tries to validate your domain, you won’t be able to get a certificate Do you have any proxy, firewall, etc. that could cause this issue on first connections?
I don’t think I have any proxy causing this issue because it was freshly installed Ubuntu 22.04 Server and I follow the default installation instructions,
As far as I can see, there is something in your server or in front of your server doing port spoofing so I would talk to you hosting provider and let them know what is the problem you are facing.
Just in case it is useful to talk to your hosting provider., it rejects “always” the first connection to any port and then accepts the second one.
Example using port 25 (as I said, it happens with all ports, from 1 to 65535):
$ telnet 45.146.252.23 25
Trying 45.146.252.23...
Connected to 45.146.252.23.
Escape character is '^]'.
Connection closed by foreign host. <-- Connection is closed automatically
$ telnet 45.146.252.23 25
Trying 45.146.252.23...
Connected to 45.146.252.23.
Escape character is '^]'.
220 mail.starverse.in <-- Connection works on second attempt
quit
221 mail.starverse.in closing connection
Connection closed by foreign host.