The mail server is giving me a TIMEOUT!

hack3rcon

New member
Joined
Mar 11, 2016
Messages
4
Hello,
I have a number of virtual machines through which I can access mail servers outside the internal network, such as Gmail:
Code:
$ telnet smtp.gmail.com 25
Trying 64.233.184.108...
Connected to smtp.gmail.com.
Escape character is '^]'.
220 smtp.gmail.com ESMTP 5b1f17b1804b1-438dcc13151sm31122455e9.1 - gsmtp
But when I try to connect to the internal mail server from the internal network, a TIMEOUT error is displayed.
I can connect to the internal mail server from outside the network:
Code:
$ telnet mail.mywebsite.com 587
Trying XXX.XXX.XXX.XXX...
Connected to mail.mywebsite.com.
Escape character is '^]'.
220 XXX.XXX.XXX.XXX ESMTP Exim 4.97.1 Fri, 31 Jan 2025 06:21:58 -0500
I just can't connect to it from the internal network.

How do I troubleshoot?

Thank you.
 
Last edited:
maybe firewall issued.


Hello,
Thank you so much for your reply.
If I disable the firewall and the problem is solved, then how can I have the firewall enabled and this problem solved?
 
It's still enabled, it's just stop the directadmin from change back the "SMTP_BLOCK" to "1" again.
 
if you enable in firewall csf setting SMTP_BLOCK = "1"

you should allow the user(s) to make the connection

just add the username from directadmin_account_username
in csf.conf setting

in the file /etc/csf/csf.conf

SMTP_ALLOWUSER = "username"

if you want to allow more users just add more user like this

SMTP_ALLOWUSER = "username,username2,username3"
restart csf whit command

 
Back
Top