I’m working with a Postfix/Dovecot/Roundcube setup, aiming for a virtual user mail system that can send mail through the internet.
Everything seems to work well; Dovecote shows no problems, I can telnet into all of my ports; however, whenever I try to send mail through Roundcube I get the error:
1 |
SMTP Error (220): Authentication failed. |
In Roundcube logs:
1 |
[22-Jan-2022 05:27:31 +0000]: SMTP Error: SMTP error: Authentication failure: STARTTLS failed (Code: ) in /usr/share/webapps/roundcubemail/program/lib/Roundcube/rcube.php on line 1505 (POST /roundcube/?_task=mail&_unlock=loading1421472451594&_lang=en_US&_framed=1?_task=mail&_action=send) |
As Postfix is responsible for SMTP I also checked /var/log/maillog :
1 2 3 4 |
Jan 22 21:14:35 steelhorse postfix/smtpd[18426]: disconnect from localhost.localdomain[127.0.0.1] Jan 22 21:14:35 steelhorse postfix/smtpd[18426]: lost connection after STARTTLS from localhost.localdomain[127.0.0.1] Jan 22 21:14:35 steelhorse postfix/smtpd[18426]: warning: TLS library problem: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:s3_pkt.c:1293:SSL alert number 45 Jan 22 21:14:35 steelhorse postfix/smtpd[18426]: SSL_accept error from localhost.localdomain[127.0.0.1]: 0 |
To fix this add the following lines in Roundcube’s config:
1 2 3 4 5 6 |
$config['smtp_conn_options'] = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, ), ); |
After saving the file try to connect again.
Good luck!