Roundcubemail can't connect to smtp server

Kiekeboe100

Verified User
Joined
Apr 19, 2008
Messages
142
Location
Belgium
Hi,

I'm having problems in roundcubemail that I can't send mails.

in the "errors" log:
Code:
[02-Jun-2013 21:23:21 Europe/Berlin] Connection timed out (110):
[02-Jun-2013 21:23:21 Europe/Berlin] Failed to connect socket: Connection timed out ():
[02-Jun-2013 21:23:21 +0200]: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /var/www/html/roundcubemail-0.9.1/program/include/rcmail.php on line 1009 (POST /webmail/?_unlock=loading1370200941082&_lang=en?_task=mail&_action=send)

smtp_server in config is: localhost
smtp_port: 587

telnet localhost 587 works without any problems.

In the exim mainlog, I don't see any connection attempt.

Does anyone know what I can try next? I did do a cpan, upgrade somewhere this week, don't know if this might be related. (After the upgrade ./build options gave me a perl error, install & uninstall spamassassin fixed this).

regards,
Stijn
 
Hello Stijn,

You might want to try changing localhost to 127.0.0.1 or another real IP of yours.

Alos try and enable debug mode (if it's not enable yet) in Roundcube, probably it will give you some clues.
 
Hi,

Tried changing smtp_server to 127.0.0.1 and to my main ip. Both are not working.
Changed debug mode
Code:
// system error reporting, sum of: 1 = log; 4 = show, 8 = trace
$rcmail_config['debug_level'] = 13;
Also changed smtp_debug
Code:
// Log SMTP conversation to <log_dir>/smtp or to syslog
$rcmail_config['smtp_debug'] = true;
But there is no smtp file created (log_driver = file)
And in the error log it always shows the same.

regards,
Stij
 
Hi,

I found that the php_flag options in .htaccess are not used.
Created a testfile with phpinfo(); and there all values are default.

Don't know if this might cause the mailing problem, but maybe it's the reason the error log is not working.
 
I found the issue.

Seems csf was blocking the local smtp connections.
So I added the webapps group to SMTP_ALLOWGROUP

regards,
Stijn
 
I'm glad you've found the solution. Thank you for sharing your findings, good to know that for a future references as well.
 
I review complete conversation and good a good knowledge about smtp server problem, I faced some problem but solved at my level, If I'll have major problem then should be try this :)
 
Back
Top