Hi all,
Finally, I've found the answer to my issue.
The following configuration must be added at config.inc.php:
$config['smtp_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
),
);
As for localhost, I have not a valid certificate.
Cheers
On 2016-10-07 16:35, Ramiro Alba wrote:
Hi all,
I am setting up a new installation with RC-1.2.2 on Ubuntu LTS 16.04
and I am having
problems to send messages using authenticated SMTP on port 587. My
config is:
$config['smtp_server'] = 'tls://%h';
$config['smtp_port'] = 587;
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
$config['smtp_auth_type'] = 'PLAIN';
When trying to send a message I get an 'SMTP Error: Authentication
failure' and also at the
logs/errors:
[07-Oct-2016 14:59:59 Europe/Madrid] ERROR: STARTTLS failed ()
[07-Oct-2016 14:59:59 Europe/Madrid] ERROR: Invalid response code
received from server (-1)
[07-Oct-2016 14:59:59 Europe/Madrid] ERROR: Failed to write to socket:
unknown error ()
[07-Oct-2016 14:59:59 +0200]: <ra11q2ia> SMTP Error: Authentication
failure: STARTTLS failed (Code: ) in
/var/www/html/program/lib/Roundcube/rcube.php on line 1649 (POST
/?_task=mail&_unlock=loading1475845198531&_lang=en_US&_framed=1&_action=send)
Any other client (smartphone, python script, etc), both on localhost as
remote node can send messages
without errors. Also, the same configuration on RC-1.1.3 and Ubuntu LTS
12.04 works smoothly.
If I change configuration to not authenticated on port 25:
$config['smtp_server'] = '%h';
$config['smtp_port'] = 25;
$config['smtp_user'] = '';
$config['smtp_pass'] = '';
$config['smtp_auth_type'] = '';
messages will be sent without errors
For my policy is interesting to connect localhost on submission port,
as I can apply SMTP restrictions
with postfix which I will not apply on 25 port connections.
Has somebody some suggestions/ideas on this issue?
Thanks in advance
Best regards
--
Ramiro Alba
Centre Tecnològic de Tranferència de Calor
http://www.cttc.upc.edu
Escola Tècnica Superior d'Enginyeries
Industrial i Aeronàutica de Terrassa
Colom 11, E-08222, Terrassa, Barcelona, Spain
Tel: (+34) 93 739 8928
_______________________________________________
Roundcube Users mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/users
--
Ramiro Alba
Centre Tecnològic de Tranferència de Calor
http://www.cttc.upc.edu
Escola Tècnica Superior d'Enginyeries
Industrial i Aeronàutica de Terrassa
Colom 11, E-08222, Terrassa, Barcelona, Spain
Tel: (+34) 93 739 8928
--
Aquest missatge ha estat analitzat per MailScanner
a la cerca de virus i d'altres continguts perillosos,
i es considera que est� net.
_______________________________________________
Roundcube Users mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/users