Failed to connect to server: Network is unreachable SMTP, Connection refused.

shiroamada

New member
Joined
Apr 30, 2021
Messages
4
I have the similar issue like this post

But I didn't see the solution from there, and I manage to figure out the issue, but I have no idea how to solve it.

Below is the screenshot in SSH. If I login as User, I can't connect to google smtp, but if I using root user then ok.

Untitled-1.png


I am deploying Laravel Project, I am using GMAIL SMTP for sending out email. I am not sure why direct admin not allow for doing this.
and where to allow for user account.

Thanks!
 
do you use " CSF Firewall " ?
try disable and test it.

look like you have SMTP_BLOCK = ON
"root" have been allowed remote smtp by default
 
1. Can I particular enable for this user only?

2. Yes, I have use CSF Firewall, I can't disable it, because this server also has another user.

3. Where can I set SMTP_BLOCK = ON?, after I change I need to restart the services?

Sorry, I am very new in DirectAdmin. Please help to explain more. Why this SMTP_BLOCK=ON by default, since I am using third party SMTP and with proper SMTP authentication.
 
it on GUI "csf -> Firewall Config..."
Set it to "OFF"

maybe have option for only user, try learning by yourself, Because It to
o much function that I can't remember.
after you save, it will ask Restart Firewall button
 
If you have SMTP_BLOCK on and also SMTP_ALLOWLOCAL set to on, then you don't need to set an SMTP_ALLOWUSER anymore.
 
Back
Top