Applicable to:
- Plesk for Linux
Symptoms
-
Unable to send email on Plesk server using webmail interface (Horde or RoundCube), the following error appears:
PLESK_ERROR: Could not open secure TLS connection to the server
-
The following errors are found in
/var/log/psa-horde/psa-horde.log
:PLESK_INFO: DEBUG: HORDE Load config file (conf.php; app: horde) [pid 51301 on line 109 of "/usr/share/psa-pear/pear/php/Horde/Registry/Loadconfig.php"]
DEBUG: HORDE [imp] Load config file (conf.php; app: imp) [pid 51301 on line 109 of "/usr/share/psa-pear/pear/php/Horde/Registry/Loadconfig.php"]
ERR: HORDE [imp] Could not open secure TLS connection to the server. [pid 51301 on line 1157 of "/usr/share/psa-horde/imp/lib/Compose.php"]
DEBUG: HORDE 1. Horde_Core_Ajax_Application->doAction() /usr/share/psa-horde/services/ajax.php:61
2. call_user_func() /usr/share/psa-pear/pear/php/Horde/Core/Ajax/Application.php:175
3. IMP_Ajax_Application_Handler_Common->sendMessage()
4. IMP_Compose->buildAndSendMessage() /usr/share/psa-horde/imp/lib/Ajax/Application/Handler/Common.php:555 -
The following errors are found in
/var/log/maillog
:PLESK_INFO: server postfix/smtpd[52260]: SSL_accept error from server.example.com[127.0.0.1]: -1
server postfix/smtpd[52260]: warning: TLS library problem: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol:s23_srvr.c:647:
server postfix/smtpd[52260]: lost connection after STARTTLS from server.example.com[127.0.0.1]
Cause
Incorrect settings in webmail configuration file /etc/psa-webmail/horde/horde/conf.php or in file /usr/share/psa-roundcube/config/config.inc.php.
Resolution
-
Connect to the server via SSH as root.
-
Edit configuration files with any text editor:
-
For Horde:
Correct settings in
/etc/psa-webmail/horde/horde/conf.php
:CONFIG_TEXT:// send email with authorization on SMTP server
$conf['mailer']['params']['host'] = 'ssl://localhost';
$conf['mailer']['params']['port'] = 465;
$conf['mailer']['params']['auth'] = true;
$conf['mailer']['params']['username_auth'] = true;
$conf['mailer']['params']['password_auth'] = true;
$conf['mailer']['type'] = 'smtp'; -
For Roundcube:
Add / edit the following lines in the file
/usr/share/psa-roundcube/config/config.inc.php
:CONFIG_TEXT: $config['smtp_server'] = 'ssl://localhost';
$config['smtp_port'] = 465;
-
Comments
4 comments
For Plesk Onyx, we found that to get Roundcube to work when this type or error was logged, the following line needed to be appended to /usr/share/psa-roundcube/config/config.inc.php:
$config['smtp_server'] = 'ssl://%z:465';
Added the solution for Roundcube, thank you.
Those settings already exist. Still get the TLS error. Firewall port open and port set correctly. Even turned off TLS for the web site and no change.
Hi Robert Ricci please open a suppor ticket with us so we can access the server and check. That error can be cause by different configurations.
Please sign in to leave a comment.