When I try to send a letter from Roundcube I get the following error:
1 |
Authentication failure: SMTP server does not support authentication (Code: )) |
This can happen if Postfix doesn’t allow authentication from a localhost where Roundcube resides or if authentication scheme is wrong.
Update the /etc/postfix/main.cf :
1 |
mynetworks_style = host |
Specify “mynetworks_style = host
” when Postfix should “trust” localhost.
Next, in Roundcube’s settings (default.inc.cfg) make sure you specified correct authentication scheme. In my case it’s STARTTLS. As description states:
1 |
// Enter hostname with prefix ssl:// to use Implicit TLS, or use prefix tls:// to use STARTTLS. |
So I added “tls://
” in front of FQDN of my SMTP server:
1 |
$config['smtp_server'] = 'tls://mail.example.com'; |
And that fixed Authentication failure: SMTP server does not support authentication (Code: )) error.
After that I had to fix one more error as described here.
Good luck!