Warning: fsockopen(): unable to connect to localhost:25

mahdionline

Well-Known Member
Oct 18, 2003
127
0
166
Hi,

after a reboot (by EV1 panel), I get this error in one of our php script :


Warning: fsockopen(): unable to connect to localhost:25 in . . ..


What's the problem ?

regard
 

mahdionline

Well-Known Member
Oct 18, 2003
127
0
166
chirpy said:
Make sure you haven't enabled the WHM > Tweak Security > SMTP Tweak, as that's exactly what that does.
No, We use port 25.

All thing was done before Reboot.

:mad:
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
You seem to be consuing what I said with something else. Have you checked that that setting I mentioned is not enabled? That setting blocks access to port 25 from localhost.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
I don't use it myself. However, if you believe you have outgoing spam abusing port 25, then it's worth implementing unless you use an iptables configuration script. In that case, you would have to use that to block port 25 in ther same manner as the SMTP Tweak does.