SMTP Failed to connect socket Connection timed out code: -1response

Some times when connecting to Webmail (Horde, SquirelMail, Roundcude) you may get the error :

Failed to connect to localhost 25 SMTPFailed to connect socket Connection timed out code: -1response

When you find this error open the csf.conf file and search for the lines :

SMTP_BLOCK = “0”
SMTP_ALLOWLOCAL = “0”

And change it to

SMTP_BLOCK = “1”
SMTP_ALLOWLOCAL = “1”

and then restart the firewall

[email protected][#] csf -r

That’s all you are done.