Author Topic: SMTP Error (-1) Connection to server has failed - can not sending mail  (Read 16127 times)

Offline Marios

  • Newbie
  • *
  • Posts: 3
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.xxxmod_fcgidstderrPHP Notice:  SMTP errorConnection failedFailed to connect socketConnection refused in /home/site/public_html/email/program/include/main.inc on line 1712refererhttp://mail.site.com/?_task=mail&_id=3897839214ce93e21723ff&_action=compose

[Sun Nov 21 17:43:57 2010] [warn] [client 86.122.xxx.xxxmod_fcgidstderrPHP Warning:  Error writing to log file /home/domeniumeu/public_html/email/logs/errorsPlease check permissions in /home/site/public_html/email/program/include/main.inc on line 1141refererhttp://mail.site.com/?_task=mail&_id=3897839214ce93e21723ff&_action=compose

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
SMTP Error (-1) Connection to server has failed - can not sending mail
« Reply #1 on: November 22, 2010, 07:36:13 PM »
It sounds like a firewall is blocking the connection from the server.

Offline d00s7w

  • Jr. Member
  • **
  • Posts: 13
SMTP Error (-1) Connection to server has failed - can not sending mail
« Reply #2 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 :)

Offline alec

  • Hero Member
  • *****
  • Posts: 1,363
SMTP Error (-1) Connection to server has failed - can not sending mail
« Reply #3 on: November 25, 2010, 08:14:44 AM »
Enable smtp_debug and check the log.

Offline d00s7w

  • Jr. Member
  • **
  • Posts: 13
SMTP Error (-1) Connection to server has failed - can not sending mail
« Reply #4 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.

Offline d00s7w

  • Jr. Member
  • **
  • Posts: 13
SMTP Error (-1) Connection to server has failed - can not sending mail
« Reply #5 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)

Offline d00s7w

  • Jr. Member
  • **
  • Posts: 13
SMTP Error (-1) Connection to server has failed - can not sending mail
« Reply #6 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

Offline d00s7w

  • Jr. Member
  • **
  • Posts: 13
SMTP Error (-1) Connection to server has failed - can not sending mail
« Reply #7 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)