Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member mahdionline's Avatar
    Join Date
    Oct 2003
    Posts
    127

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

    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

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Does the same happen with the IP or domain name?

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Make sure you haven't enabled the WHM > Tweak Security > SMTP Tweak, as that's exactly what that does.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member mahdionline's Avatar
    Join Date
    Oct 2003
    Posts
    127

    Default

    Quote Originally Posted by chirpy
    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.

    Mahdionline

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  6. #6
    Member
    Join Date
    May 2004
    Posts
    71

    Default

    I'm just wondering if you think this SMTP tweak should be on or off.
    Do you have it enabled or disabled?

  7. #7
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  8. #8
    Member
    Join Date
    May 2004
    Posts
    71

    Default

    I understand. Thank you for your reply...

    Regards

Similar Threads & Tags
Similar threads

  1. fsockopen won't connect on port 80 to akismet
    By WindyT in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-09-2009, 05:33 PM
  2. MySQL 5 - Connect to server at 'localhost' failed
    By smarttart62 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-28-2007, 09:55 AM
  3. Warning: socket_connect() unable to connect [113]: No route to host
    By liceen in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-14-2007, 11:43 PM
  4. Replies: 2
    Last Post: 01-26-2006, 12:25 AM
  5. Warning: fsockopen(): unable to connect to
    By itrends in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 06-17-2005, 02:51 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube