Roundcube not sending mails

pphas

Member
Jul 6, 2007
11
0
51
Roundcube was working fine until it recently stopped sending mail. This is the error that shows up in the log:

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 1418

This problem appears to be widespread - or at least in the past - as there are many posts on the Roundcube forum. However, the proposed solutions involve changing SMTP settings etc. but all of these have not been touched so I find it odd that this stopped functioning. Also, I can not find any similar post on the cPanel forum, so it appears that this normally does not happen with cPanel Roundcube. However, is there somebody who knows what the cause could be for this issue?

Thanks,
Paul
 

Bigwebmaster

Active Member
Dec 3, 2003
32
9
158
I am having the exact same problem with one of our servers. Same identical error. Works fine using smpt with Outlook, but not with any of the cpanel webmail apps. For that reason I do not think its a RoundCube specific problem.
 

Bigwebmaster

Active Member
Dec 3, 2003
32
9
158
Just thought I would give an update on what fixed the problem for me, maybe its the same for you not sure.

I had recently upgraded CSF and I think it had a new option that was disabling any of the webmails from sending out emails. This option:

# 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
That was set to 0 before, simply changing it to 1 and restarting the firewall fixed the problem for me.