Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Aug 2002
    Posts
    31

    Default Roundcube hangs while sending mail (connection to socket timed out)

    I'm having the same issue. The fix editing the roundcube config did not work for me.

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by gegervision View Post
    I'm having the same issue. The fix editing the roundcube config did not work for me.
    Please check for possible logged error detail from RoundCube; the following post details how to do this (using root SSH access while attempting to send in RoundCube):
    http://forums.cpanel.net/579929-post5.html

    It might be a known issue with an available fix, such as what is detailed in the following post (with example log detail for comparison):
    http://forums.cpanel.net/580101-post7.html

    If the problem is still persistent, please let us know the log detail seen via SSH.

  3. #3
    Member
    Join Date
    Aug 2002
    Posts
    31

    Default

    it may be a CSF issue. I did the following after looking up my error:

    http://forums.cpanel.net/f43/roundcu...ls-105797.html

    But then I got this error in RoundCude Log:

    [27-Oct-2009 19:39:33] Invalid response code received from server (550):
    [27-Oct-2009 19:39:33 -0400] SMTP Error: SMTP error: Failed to add recipient 'xxxxxxxxxx@yahoo.com' in /usr/local/cpanel/base/3rdparty/roundcube/program/steps/mail/func.inc on line 1248 (POST /3rdparty/roundcube/index.php?_task=mail&_action=send)

  4. #4
    Member
    Join Date
    Aug 2002
    Posts
    31

    Default

    Here is my log results (not the same as mentioned in one of the link you provided below):

    [27-Oct-2009 19:34:11] Connection timed out (110):
    [27-Oct-2009 19:34:11] Failed to connect socket: Connection timed out ():
    [27-Oct-2009 19:34:11 -0400] SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/local/cpanel/base/3rdparty/roundcube/program/steps/mail/func.inc on line 1248 (POST /3rdparty/roundcube/index.php?_task=mail&_action=send)

    Quote Originally Posted by cPanelDon View Post
    Please check for possible logged error detail from RoundCube; the following post details how to do this (using root SSH access while attempting to send in RoundCube):
    http://forums.cpanel.net/579929-post5.html

    It might be a known issue with an available fix, such as what is detailed in the following post (with example log detail for comparison):
    http://forums.cpanel.net/580101-post7.html

    If the problem is still persistent, please let us know the log detail seen via SSH.

  5. #5
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Are other webmail clients allowing to send without error, such as via Horde and SquirrelMail?

    Is there a hardware or software firewall in-use; in particular a software firewall running on the same system might be interfering. An example of software firewalls might include an iptables-wrapper, like APF, CSF/LFD, or similar third-party scripts or custom iptables configurations.

  6. #6
    Member
    Join Date
    Aug 2002
    Posts
    31

    Default

    Yes CSF is running as I stated above. Was working fine until a few days ago.

    Can I still run
    Code:
    # /scripts/autorepair net_smtp_fix
    safely without causing any further issues.

    Quote Originally Posted by cPanelDon View Post
    Are other webmail clients allowing to send without error, such as via Horde and SquirrelMail?

    Is there a hardware or software firewall in-use; in particular a software firewall running on the same system might be interfering. An example of software firewalls might include an iptables-wrapper, like APF, CSF/LFD, or similar third-party scripts or custom iptables configurations.

  7. #7
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    I apologize as I missed your earlier message indicating CSF was in-use.

    The autorepair script for "net_smtp_fix" should still be safe to run without causing further difficulty; to help reduce the number of variables I would try just one possible fix at a time where the issue is re-verified after attempting each corrective measure.

    For CSF, please check the following configuration options:
    SMTP_BLOCK
    SMTP_ALLOWLOCAL
    SMTP_PORTS

    Specific to CSF, the following command (via root SSH access) may be used to view the current setting of the above options:
    Code:
    # grep -i "^SMTP_" /etc/csf/csf.conf
    If using "SMTP_BLOCK" please ensure that "SMTP_ALLOWLOCAL" is enabled.

    If that alone does not fix it, please try temporarily disabling CSF to further test RoundCube.

  8. #8
    Member
    Join Date
    Aug 2002
    Posts
    31

    Default

    Same issue with all web mail scripts. I only had RoundCube enabled so I had to add the other in tweak setting to test.

    My CSF/LFD has the following:

    SMTP_BLOCK = 1 Default: 0
    # If SMTP_BLOCK is enabled but you want to allow local connections to port 25
    # on the server (e.g. for webmail or web scripts) then enable this option to
    # allow outgoing SMTP connections to 127.0.0.1
    SMTP_ALLOWLOCAL = 1 Default: 0

    But i still get the errors

  9. #9
    Member
    Join Date
    Aug 2002
    Posts
    31

    Default

    I got it working. Let me follow back what I did and will post what I did to resolve it. Thx for you help and quick responses.

Similar Threads & Tags
Similar threads

  1. Connection timed out
    By czerdrill in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-02-2011, 12:43 PM
  2. The Connection has timed out
    By getnetphnx in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 02-25-2010, 03:10 PM
  3. Roundcube hangs while sending mail
    By Tsafarog in forum E-mail Discussions
    Replies: 8
    Last Post: 02-19-2010, 02:21 PM
  4. The connection has timed out
    By Celep in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-22-2006, 07:58 AM
  5. Mail Problem: "Connection timed out"
    By Eurcynia in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-25-2004, 07:30 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube