Roundcube Community Forum

 

SMTP error -1

Started by sulfurito, April 06, 2013, 05:16:23 PM

Previous topic - Next topic

sulfurito

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:

$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'] = '[email protected]';

// 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

SKaero

The smtp port is wrong, according to http://faq.1and1.es/email/clientes_correo/1.html it should be 587.

sulfurito

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.

ABerglund

Have you tried port 25 without TLS?
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

sulfurito

Yes, also tried that

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

sulfurito

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