Roundcube smtp authentication problem when sending
I just noticed the problem on our servers and then found this issue #29 (closed) during investigation.
By default, SMTP on port 25 doesn't have authentication enabled. Because of this, setting $config['smtp_user']
and $config['smtp_pass']
to non-blank values will make Roundcube interface unable to send messages with error
SMTP Error: Authentication failure:
SMTP server does not support authentication (Code: )
in /usr/share/roundcube/program/lib/Roundcube/rcube.php on line 1702
This config setup is not working, which is what autoinstaller script configures initially.
config['default_host'] = 'localhost';
$config['smtp_server'] = '%h';
$config['smtp_port'] = 25;
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
This config is working.
config['default_host'] = 'localhost';
$config['smtp_server'] = '%h';
$config['smtp_port'] = 25;
$config['smtp_user'] = '';
$config['smtp_pass'] = '';