Author Topic: SMTP error -1  (Read 4786 times)

Offline sulfurito

  • Newbie
  • *
  • Posts: 5
SMTP error -1
« on: April 06, 2013, 05:16:23 PM »
Hello, I'm not able to configure my smpt server to send messages from Roundcube.

This is my config, tls is worknig in Thunderbird, I also tryed ssl:// and nothing:

Code: [Select]
$rcmail_config['smtp_server'] = 'tls://smtp.1and1.es';

// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
// deprecated SSL over SMTP (aka SMTPS))
$rcmail_config['smtp_port'] = 25;

// SMTP username (if required) if you use %u as the username Roundcube
// will use the current username for login
$rcmail_config['smtp_user'] = 'my@example.com';

// SMTP password (if required) if you use %p as the password Roundcube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = 'mypass';

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = '';

// Optional SMTP authentication identifier to be used as authorization proxy
$rcmail_config['smtp_auth_cid'] = null;

// Optional SMTP authentication password to be used for smtp_auth_cid
$rcmail_config['smtp_auth_pw'] = null;

// SMTP HELO host
// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
// Leave this blank and you will get the server variable 'server_name' or
// localhost if that isn't defined.
$rcmail_config['smtp_helo_host'] = '';

// SMTP connection timeout, in seconds. Default: 0 (no limit)
$rcmail_config['smtp_timeout'] = 0;


And this is log entry:

[06-Apr-2013 23:08:46] Conexión rehusada (111):
[06-Apr-2013 23:08:46] Failed to connect socket: Conexión rehusada ():
[06-Apr-2013 23:08:46 +0200]: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Conexión rehusada in /htdocs/roundcube/program/include/main.inc on line 1485 (POST /?_unlock=loading1365282520525&_lang=undefined?_task=mail&_action=send)

Any help?
Thank you

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: SMTP error -1
« Reply #1 on: April 06, 2013, 05:34:27 PM »
The smtp port is wrong, according to http://faq.1and1.es/email/clientes_correo/1.html it should be 587.

Offline sulfurito

  • Newbie
  • *
  • Posts: 5
Re: SMTP error -1
« Reply #2 on: April 07, 2013, 04:38:15 PM »
I get the same error with that port, I read somewhere in 1and1 that you can use both ports, and 25 is working on Thunderbird, so the problem is somewhere else.

Thank you anyway.

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: SMTP error -1
« Reply #3 on: April 07, 2013, 08:45:46 PM »
Have you tried port 25 without TLS?
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline sulfurito

  • Newbie
  • *
  • Posts: 5
Re: SMTP error -1
« Reply #4 on: April 11, 2013, 04:04:19 AM »
Yes, also tried that

PS: sorry for the late answer, wasn't subcribed to this thread

Offline sulfurito

  • Newbie
  • *
  • Posts: 5
Re: SMTP error -1
« Reply #5 on: April 11, 2013, 10:39:29 AM »
Searching more carefully I found it's a common issue, I can solve it not specifying an smpt server in config and thus using mail function, which I don't like very much but looks like I don't have a chance.

It may be related with 1and1 closing smtp ports in my shared hosting, where Roundcube is installed.

See this: http://www.roundcubeforum.net/index.php?topic=1849.0

Thank you