I installed RoundCube on a subdomain (mail.site.com) and I can receive mail but when sending a mail receive the following error:
SMTP Error (-1) Connection to server failed.
If I try with outlook (using Windows Live Mail) can send mail without any problems.
The logs from cPanel Eoror I found this error:
[Sun Nov 21 17:43:57 2010] [warn] [client 86.122.xxx.xxx] mod_fcgid: stderr: PHP Notice: SMTP error: Connection failed: Failed to connect socket: Connection refused in /home/site/public_html/email/program/include/main.inc on line 1712, referer: http://mail.site.com/?_task=mail&_id=3897839214ce93e21723ff&_action=compose
[Sun Nov 21 17:43:57 2010] [warn] [client 86.122.xxx.xxx] mod_fcgid: stderr: PHP Warning: Error writing to log file /home/domeniumeu/public_html/email/logs/errors; Please check permissions in /home/site/public_html/email/program/include/main.inc on line 1141, referer: http://mail.site.com/?_task=mail&_id=3897839214ce93e21723ff&_action=compose
It sounds like a firewall is blocking the connection from the server.
i have the same issue - no firewall issue as the roundcube installation is running on same localhost as hmailserver.
snippet of error log:
[25-Nov-2010 12:01:20] Invalid response code received from server (-1):
[25-Nov-2010 12:01:20 +0000]: SMTP Error: SMTP error: Failed to send data in C:\Inetwww\\program\steps\mail\func.inc on line 1365 (POST /?_task=mail&_action=send)
[25-Nov-2010 12:01:20] Invalid response code received from server (-1):
any help appreciated :)
Enable smtp_debug and check the log.
i have the same issue using [0.3.1] - not the latest version i know. i have smtp_debug enabled and happy to post / let an admin poke around.
i get the Invalid response code received from server (-1) every so often, for the first few attempts to send a message, then every so often it says message sent and it gets received.
snippet from SMTP LOG:
[02-Aug-2011 16:55:17] Invalid response code received from server (-1):
[02-Aug-2011 16:55:17] Invalid response code received from server (-1):
[02-Aug-2011 17:55:17 +0100]: SMTP Error: SMTP error: Authentication failure: Invalid response code received from server (Code: -1) in C:\Inetwww\\program\steps\mail\func.inc on line 1365 (POST /?_task=mail&_action=send)
[02-Aug-2011 16:55:19] Invalid response code received from server (-1):
[02-Aug-2011 17:55:19 +0100]: SMTP Error: SMTP error: Connection failed: Invalid response code received from server in C:\Inetwww\\program\steps\mail\func.inc on line 1365 (POST /?_task=mail&_action=send)
edit:
if i keep clicking send message, it eventually gets sent..... every other time it doesn't, i get the same as above
have upgraded from 0.3.1 to 0.5.1. am still getting errors:
[03-Aug-2011 17:06:55 +0100]: DB Error: MDB2 Error: constraint violation Query: _doQuery: [Error message: Could not execute statement] [Last executed query: INSERT INTO session (sess_id, vars, ip, created, changed) VALUES ('92114e1b1fd0efe3b6f847872a1c5261', 'bGFuZ3VhZ2V8czo1OiJlbl9HQiI7YXV0aF90aW1lfGk6MTMxMjM4NzYxNTt0ZW1wfGI6MTs=', '82.30.37.166', FROM_UNIXTIME(1312387615), FROM_UNIXTIME(1312387615))] [Native code: 1062] [Native message: Duplicate entry '92114e1b1fd0efe3b6f847872a1c5261' for key 'PRIMARY'] in C:\Inetwww\webmail\program\include\rcube_mdb2.php on line 650 (GET /?_task=mail&_remote=1&_action=list&_mbox=INBOX&_refresh=1&_=1312387611986&_unlock=loading1312387611984)