Roundcube Community Forum

 

SMTP send: NOT OK(Connection failed: (Code: -1))

Started by mjcc, September 19, 2024, 06:28:24 AM

Previous topic - Next topic

mjcc

Hi!

I have ticked all the boxes, installing RC v.1.6.9 on a new server #2.

At the last hurdle when testing SMTP, I get this:

SMTP send:  NOT OK(Connection failed: (Code: -1))

I already have RC v1.3.4 running on server #1, which is the same email server, that the above new install is trying to connect to, and connecting to the same email account.

The email config such as TLS, ports, username and passwords are same I use elsewhere with success.


Any ideas?

Here is my config:

$config['db_dsnw'] = 'mysql://roundcube:fzlz%21LygHmPpumH%21TlB6QZPY@localhost/roundCube_1_6_9';
$config['imap_host'] = 'tls://mail.f4g.tech:993';
$config['smtp_host'] = 'tls://mail.f4g.tech:587';
$config['support_url'] = 'https://f4g.tech/good-luck.htm';
$config['ip_check'] = false;
$config['des_key'] = 'qnVZK3kdozuN7Ihfd8wyHIST';
$config['username_domain'] = '';
$config['product_name'] = 'Roundcube Webmail 2';
$config['plugins'] = ['help', 'managesieve'];
$config['language'] = 'es_ES';
$config['spellcheck_engine'] = 'atd';
$config['mail_pagesize'] = 60;
$config['addressbook_pagesize'] = 60;
$config['htmleditor'] = 1;

QuoteChecking PHP version
Version:  OK(PHP 7.4.33 detected)
Checking PHP extensions

The following modules/extensions are required to run Roundcube:
PCRE:  OK
DOM:  OK
Session:  OK
XML:  OK
Intl:  OK
JSON:  OK
PDO:  OK
Multibyte:  OK
OpenSSL:  OK
Filter:  OK
Ctype:  OK

The next couple of extensions are optional and recommended to get the best performance:
cURL:  OK
FileInfo:  OK
Exif:  OK
Iconv:  OK
LDAP:  NOT AVAILABLE(See https://www.php.net/manual/en/book.ldap.php)
GD:  OK
Imagick:  OK
XMLWriter:  OK
Zip:  OK
Checking available databases

Check which of the supported extensions are installed. At least one of them is required.
MySQL:  OK
PostgreSQL:  NOT AVAILABLE(See https://www.php.net/manual/en/ref.pdo-pgsql.php)
SQLite:  NOT AVAILABLE(See https://www.php.net/manual/en/ref.pdo-sqlite.php)
SQLite (v2):  NOT AVAILABLE(See https://www.php.net/manual/en/ref.pdo-sqlite.php)
SQL Server (SQLSRV):  NOT AVAILABLE(See https://www.php.net/manual/en/ref.pdo-sqlsrv.php)
SQL Server (DBLIB):  NOT AVAILABLE(See https://www.php.net/manual/en/ref.pdo-dblib.php)
Oracle:  NOT AVAILABLE(See https://www.php.net/manual/en/book.oci8.php)
Check for required 3rd party libs

This also checks if the include path is set correctly.
PEAR:  OK
Auth_SASL:  OK
Net_SMTP:  OK
Mail_mime:  OK
GuzzleHttp\Client:  OK
Net_LDAP3:  NOT AVAILABLE(Recommended to install Net_LDAP3 from git.kolab.org; See https://git.kolab.org/diffusion/PNL)
Checking php.ini/.htaccess settings

The following settings are required to run Roundcube:
file_uploads:  OK
session.auto_start:  OK
mbstring.func_overload:  OK
suhosin.session.encrypt:  OK

The following settings are optional and recommended:
date.timezone:  NOT OK(not set)

QuoteCheck config file
defaults.inc.php:  OK
config.inc.php:  OK

OK, lazy people can download the updated config file here: config.inc.php 
Check if directories are writable

Roundcube may need to write/save files into these directories
/var/www/mail/roundcube/roundcubemail-1.6.9/temp/:  OK
/var/www/mail/roundcube/roundcubemail-1.6.9/logs/:  OK
Check DB config
DSN (write):  OK
DB Schema:  OK
DB Write:  OK
DB Time:  OK
Test filetype detection
Fileinfo/mime_content_type configuration:  OK
Mimetype to file extension mapping:  OK
Test SMTP config

Host    
Username    
Password    

Trying to send email...
SMTP send:  NOT OK(Connection failed: (Code: -1))
Sender    
Recipient    

Test IMAP config
Host    
Username    
Password