Hello everyone!
I’ve recently set up a new server for my websites and performed a fresh installation of the latest version of Hestia on Debian 12.11. I successfully migrated all users from the old server to the new one without issues.
So far, everything is working correctly: I can send and receive emails from both webmail and mobile email clients. However, the issue is that WordPress contact forms are not working on any of the users’ websites. I’m using the WP Mail SMTP (by WPForms) plugin.
The plugin returns the following error when trying to connect to mail.ugutec.com.ar: SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server SMTP code: 110 Additional SMTP info: Connection timed out.
As a temporary workaround, setting the SMTP host to server.ugutec.com.ar makes it work.
So, my question is:
Why can’t I connect to the mail server using mail.ugutec.com.ar from inside the server, while it works fine when using server.ugutec.com.ar?
I’m sharing some tests I’ve performed
Hestia Control Panel v1.9.4
Operating System Debian 12.11 (x86_64)
root@server:~# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 server.ugutec.com.ar server
The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1 server.ugutec.com.ar
root@server:~# ping mail.ugutec.com.ar
PING mail.ugutec.com.ar (170.83.34.117) 56(84) bytes of data.
64 bytes from 170.83.34.117 (170.83.34.117): icmp_seq=1 ttl=64 time=0.242 ms
64 bytes from 170.83.34.117 (170.83.34.117): icmp_seq=2 ttl=64 time=0.298 ms
64 bytes from 170.83.34.117 (170.83.34.117): icmp_seq=3 ttl=64 time=0.319 ms
64 bytes from 170.83.34.117 (170.83.34.117): icmp_seq=4 ttl=64 time=0.286 ms
root@server:~# nslookup mail.ugutec.com.ar
Server: 10.0.0.1
Address: 10.0.0.1#53
Non-authoritative answer:
Name: mail.ugutec.com.ar
Address: 170.83.34.117
root@server:~# telnet mail.ugutec.com.ar 587
Trying 170.83.34.117…
telnet: Unable to connect to remote host: Expiró el tiempo de conexión
root@server:~# telnet server.ugutec.com.ar 587
Trying 127.0.0.1…
Connected to server.ugutec.com.ar.
Escape character is ‘^]’.
220 server.ugutec.com.ar