I upgraded to 1.6.8 from 1.6.1 and when try to send email, Crumble tells me "SMTP Error (): Authentication failed." There was no other configuration changes made and all Email transfers on server working flawless even sending messages with php scripts.
Configuration:
$config['smtp_host'] = '%h'; //same issue if line does not exists
$config['db_dsnw'] = 'mysql://roundcube:z@localhost/roundcube';
$config['imap_host'] = 'localhost:143';
$config['smtp_auth_type'] = 'LOGIN'; //same issue with =null or no record
$config['support_url'] = '';
$config['des_key'] = 'dedeaa';
$config['product_name'] = 'yourdomain Webmail';
I findout that smtp_host when set, is overwriten by master.cf configuration (postfix).
swaks --auth LOGIN --auth-user=username --auth-password=password --to
[email protected] --server mail.yourdomain.ch:587
=== Trying mail.yourdomain.ch:587...
=== Connected to mail.yourdomain.ch.
<- 220 mail.yourdomain.ch ESMTP Postfix
-> EHLO yourdomain.ch
<- 250-mail.yourdomain.ch
<- 250-PIPELINING
<- 250-SIZE
<- 250-VRFY
<- 250-ETRN
<- 250-STARTTLS
<- 250-ENHANCEDSTATUSCODES
<- 250-8BITMIME
<- 250-DSN
<- 250-SMTPUTF8
<- 250 CHUNKING
*** Host did not advertise authentication
-> QUIT
<- 221 2.0.0 Bye
=== Connection closed with remote host.
erro.log:
[31-Aug-2024 16:22:19 +0200]: <sqlbvv4a> PHP Error: SMTP server does not support authentication (POST /mail/?_task=mail&_unlock=loading1725114139179&_framed=1&_action=send)
[31-Aug-2024 16:22:19 +0200]: <sqlbvv4a> SMTP Error: Authentication failure: mail.yourdomain.ch
PIPELINING
SIZE
VRFY
ETRN
STARTTLS
ENHANCEDSTATUSCODES
8BITMIME
DSN
SMTPUTF8
CHUNKING (Code: 250) in /var/www/roundcube/program/lib/Roundcube/rcube.php on line 1794 (POST /mail/?_task=mail&_unlock=loading1725114139179&_framed=1&_action=send)
Hi, unfortunately not, I tried also other combinations (existing mail / imap IP etc).