Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Squirrelmail connection refused

Discussion in 'E-mail Discussion' started by Stanleytiew, Jun 28, 2005.

  1. Stanleytiew

    Stanleytiew Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    166
    Below is the error message when sending email using squirrelmail

    Warning: fsockopen(): unable to connect to localhost:25 in /usr/local/cpanel/base/3rdparty/squirrelmail/class/deliver/Deliver_SMTP.class.php on line 59
    ERROR:
    Connection refused
    Server replied: 111


    I have try the following fixed but failed:

    cp -p /usr/cpanel/base/3rdparty/squirrelmail/config/config_default.php /usr/local/base/3rdparty/squirrelmail/config/config.php
     
  2. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    India
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 nickb, Jun 28, 2005
    Last edited: Jun 28, 2005
  3. Stanleytiew

    Stanleytiew Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    166
    smtp server is running and port 25 is open. I can send mail using Neomail, horde and outlook only failed to send with squirrelmail.
     
  4. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    4
    Trophy Points:
    193
    Location:
    Minneapolis, MN
    Are you accessing Squirrelmail securely?

    This error happens when you are asking squirrelmail to use TLS for SMTP. I guess this error occurs when you asked Squirrelmail to use SMTP on port 25, and it failed due to 25 needing the STARTTLS command. If you have a fully SSL SMTP port (for example port 465), then tell squirrelmail to use this instead of 25 and it should fix the problem.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Stanleytiew

    Stanleytiew Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    166
    Can you give me more details on how to change the port, I'm not so familiar.
     
  6. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    India
    you can change port by changing variable $smtpPort in /usr/local/cpanel/base/3rdparty/squirrelmail/config/config.php
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Stanleytiew

    Stanleytiew Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    166
    Thank you for the assistance but I still can't get it work. If I change to port 465 it display error too. Is there any other thing that I can change beside changing the smtp port?
     
  8. Stanleytiew

    Stanleytiew Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    166
    forgot to mentioned that I'm accessing squirrelmail on non secure site.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice