1 (edited by rubberducky 2014-07-01 05:15:38)

Topic: Error when attempting to send mail from roundcube.

==== Required information ====
- 0.8.6:
- MySQL:
- Ubuntu 13.10:
===
When attempting to send mail from Roundcube, I get an error:

SMTP Error (-1): Connection to server failed.

Error logs show:

Jun 30 09:54:33 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rc$

We can still send just fine from Outlook

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Error when attempting to send mail from roundcube.

*) Any related log in Postfix log file (/var/log/mail.log)?
*) Please show us your smtp related settings in Roundcube config file (/usr/share/apache2/roundcubemail/config/*).

3

Re: Error when attempting to send mail from roundcube.

mail.err

Jun 30 08:13:37 mail roundcube: IMAP Error: Login failed for juanta@maildomain.com from 206.162.227.151. LOGIN: Authentication failed. in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube_imap.php on line 184 (POST /mail/?_task=login?_task=login&_action=login)
Jun 30 08:13:51 mail roundcube: IMAP Error: Login failed for juanta@maildomain.com from 206.162.227.151. LOGIN: Authentication failed. in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube_imap.php on line 184 (POST /mail/?_task=login?_task=login&_action=login)
Jun 30 09:20:36 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404144563818&_lang=undefined?_task=mail&_action=send)
Jun 30 09:23:56 mail roundcube: PHP Error: Invalid compose ID in /usr/share/apache2/roundcubemail-0.9.2/program/steps/mail/compose.inc on line 51 (GET /mail/?_task=mail&_id=193149654553b18d862e727&_action=compose)
Jun 30 09:25:22  roundcube: last message repeated 2 times
Jun 30 09:37:31 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_framed=1&_action=sendmdn?_task=&_action=)
Jun 30 09:38:29 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404145636482&_lang=undefined?_task=mail&_action=send)
Jun 30 09:43:48 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404145954839&_lang=undefined?_task=mail&_action=send)
Jun 30 09:50:47 mail roundcube: IMAP Error: Login failed for victor@maildomain.com from 99.120.202.58. LOGIN: Authentication failed. in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube_imap.php on line 184 (POST /mail/?_task=login?_task=login&_action=login)
Jun 30 09:52:59 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404147114535&_lang=undefined?_task=mail&_action=send)
Jun 30 09:54:33 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404147208051&_lang=undefined?_task=mail&_action=send)
Jun 30 10:01:15 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404147610018&_lang=undefined?_task=mail&_action=send)
Jun 30 10:09:00 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404148071637&_lang=undefined?_task=mail&_action=send)
Jun 30 10:11:04 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404148196090&_lang=undefined?_task=mail&_action=send)
Jun 30 10:13:08 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404148319137&_lang=undefined?_task=mail&_action=send)
Jun 30 10:16:52 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404147949129&_lang=undefined?_task=mail&_action=send)
Jun 30 11:01:45 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404151248964&_lang=undefined?_task=mail&_action=send)
Jun 30 11:31:06 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404153010294&_lang=undefined?_task=mail&_action=send)
Jun 30 11:38:07 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404153425924&_lang=undefined?_task=mail&_action=send)
Jun 30 11:43:18 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404153737567&_lang=undefined?_task=mail&_action=send)
Jun 30 11:46:25 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404153923617&_lang=undefined?_task=mail&_action=send)
Jun 30 11:55:21 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404154460239&_lang=undefined?_task=mail&_action=send)
Jun 30 11:57:48 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404154607199&_lang=undefined?_task=mail&_action=send)
Jun 30 11:59:23 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404154702248&_lang=undefined?_task=mail&_action=send)
Jun 30 12:30:38 mail roundcube: PHP Error: Invalid compose ID in /usr/share/apache2/roundcubemail-0.9.2/program/steps/mail/compose.inc on line 51 (GET /mail/?_task=mail&_id=166678681753b1bade45140&_action=compose)
Jun 30 12:31:55 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404156654482&_lang=undefined?_task=mail&_action=send)
Jun 30 12:34:03 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404156782781&_lang=undefined?_task=mail&_action=send)
Jun 30 12:36:10 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404156909592&_lang=undefined?_task=mail&_action=send)
Jun 30 12:49:15 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404157693965&_lang=undefined?_task=mail&_action=send)
Jun 30 13:00:11 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404158293104&_lang=undefined?_task=mail&_action=send)
Jun 30 13:00:45 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404158383757&_lang=undefined?_task=mail&_action=send)
Jun 30 13:11:40 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404159039149&_lang=undefined?_task=mail&_action=send)
Jun 30 13:28:06 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_framed=1&_action=sendmdn?_task=&_action=)
Jun 30 13:29:53 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_framed=1&_action=sendmdn?_task=&_action=)
Jun 30 13:57:54 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404161816271&_lang=undefined?_task=mail&_action=send)
Jun 30 14:00:40 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404161982653&_lang=undefined?_task=mail&_action=send)
Jun 30 14:08:20 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404162442256&_lang=undefined?_task=mail&_action=send)
Jun 30 14:33:51 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404163975536&_lang=undefined?_task=mail&_action=send)
Jun 30 14:33:57 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404163978990&_lang=undefined?_task=mail&_action=send)
Jun 30 14:37:12 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404164176030&_lang=undefined?_task=mail&_action=send)
Jun 30 14:48:45 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404164875099&_lang=undefined?_task=mail&_action=send)
Jun 30 14:49:52 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404164942008&_lang=undefined?_task=mail&_action=send)
Jun 30 14:52:02 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404165072200&_lang=undefined?_task=mail&_action=send)
Jun 30 15:19:13 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404166702605&_lang=undefined?_task=mail&_action=send)
Jun 30 15:20:40 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404166789734&_lang=undefined?_task=mail&_action=send)
Jun 30 15:24:06 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404166996206&_lang=undefined?_task=mail&_action=send)
Jun 30 15:37:59 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404167829418&_lang=undefined?_task=mail&_action=send)
Jun 30 15:52:23 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404168685040&_lang=undefined?_task=mail&_action=send)
Jun 30 15:53:44 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_framed=1&_action=sendmdn?_task=&_action=)
Jun 30 16:05:25 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404169475548&_lang=undefined?_task=mail&_action=send)
Jun 30 16:09:57 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404169747179&_lang=undefined?_task=mail&_action=send)
Jun 30 16:11:47 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404169849171&_lang=undefined?_task=mail&_action=send)
Jun 30 16:30:36 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404170985789&_lang=undefined?_task=mail&_action=send)
Jun 30 16:43:12 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404171731335&_lang=undefined?_task=mail&_action=send)
Jun 30 16:52:55 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404172314240&_lang=undefined?_task=mail&_action=send)
Jun 30 18:09:39 mail roundcube: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /usr/share/apache2/roundcubemail-0.9.2/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1404176917674&_lang=undefined?_task=mail&_action=send)

smtp config

// ----------------------------------
// SMTP
// ----------------------------------
// SMTP server host (for sending mails).
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
// If left blank, the PHP mail() function is used
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['smtp_server'] = '192.168.254.30';

// SMTP username (if required) if you use %u as the username Roundcube
// will use the current username for login
$config['smtp_user'] = '%u';

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

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

// provide an URL where a user can get support for this Roundcube installation
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
$config['support_url'] = '';

// use this folder to store log files (must be writeable for apache user)
// This is used by the 'file' log driver.
$config['log_dir'] = 'logs/';

// use this folder to store temp files (must be writeable for apache user)
$config['temp_dir'] = 'temp/';

// enforce connections over https
// with this option enabled, all non-secure connections will be redirected.
// set the port for the ssl connection as value of this option if it differs from the default 443
$config['force_https'] = true;

// Allow browser-autocompletion on login form.
// 0 - disabled, 1 - username and host only, 2 - username, host, password
$config['login_autocomplete'] = 2;

// e.g. array( 'localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock' );
// check client IP in session athorization
$config['ip_check'] = true;

// this key is used to encrypt the users imap password which is stored
// in the session record (and the client cookie if remember password is enabled).
// please provide a string of exactly 24 chars.
$config['des_key'] = '********************';

// Automatically add this domain to user names for login
// Only for IMAP servers that require full e-mail addresses for login
// Specify an array with 'host' => 'domain' values to support multiple hosts
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['username_domain'] = 'slamthedeck.com';

// add this user-agent to message headers when sending
$config['useragent'] = 'RoundCube WebMail';

// Set identities access level:
// 0 - many identities with possibility to edit all params
// 1 - many identities with possibility to edit all params but not email address
// 2 - one identity with possibility to edit all params
// 3 - one identity with possibility to edit all params but not email address
// 4 - one identity with possibility to edit only signature
$config['identities_level'] = 3;

4

Re: Error when attempting to send mail from roundcube.

rubberducky wrote:

$config['smtp_server'] = '192.168.254.30';

Is SMTP service running on this server?