The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Squirrelmail connection refused

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

  1. Stanleytiew

    Stanleytiew Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    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:
    16
    Location:
    India
    #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:
    16
    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:
    3
    Trophy Points:
    38
    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.
     
  5. Stanleytiew

    Stanleytiew Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    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:
    16
    Location:
    India
    you can change port by changing variable $smtpPort in /usr/local/cpanel/base/3rdparty/squirrelmail/config/config.php
     
  7. Stanleytiew

    Stanleytiew Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    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:
    16
    forgot to mentioned that I'm accessing squirrelmail on non secure site.
     
Loading...

Share This Page