Roundcube Community Forum

Release Support => Release Discussion => Topic started by: Marios on November 22, 2010, 03:13:00 AM

Title: SMTP Error (-1) Connection to server has failed - can not sending mail
Post by: Marios on November 22, 2010, 03:13:00 AM
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
Title: SMTP Error (-1) Connection to server has failed - can not sending mail
Post by: SKaero on November 22, 2010, 07:36:13 PM
It sounds like a firewall is blocking the connection from the server.
Title: SMTP Error (-1) Connection to server has failed - can not sending mail
Post by: d00s7w on November 25, 2010, 08:09:31 AM
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 :)
Title: SMTP Error (-1) Connection to server has failed - can not sending mail
Post by: alec on November 25, 2010, 08:14:44 AM
Enable smtp_debug and check the log.
Title: SMTP Error (-1) Connection to server has failed - can not sending mail
Post by: d00s7w on August 02, 2011, 01:05:57 PM
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.
Title: SMTP Error (-1) Connection to server has failed - can not sending mail
Post by: d00s7w on August 02, 2011, 01:08:21 PM
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)
Title: SMTP Error (-1) Connection to server has failed - can not sending mail
Post by: d00s7w on August 03, 2011, 11:00:27 AM
edit:

if i keep clicking send message, it eventually gets sent..... every other time it doesn't, i get the same as above
Title: SMTP Error (-1) Connection to server has failed - can not sending mail
Post by: d00s7w on August 03, 2011, 12:15:33 PM
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)