$rcmail_config['username_domain'] = '';
$rcmail_config['mail_domain'] = '';
Somehow, after I update
$rcmail_config['default_host'] = 'ssl://hostname.domainname';
It's now working: login is fine and mail address appears to be right.
However, I still can't send email:
SMTP Error (535): Authentication Failed
In log, I can see the following:
May 7 21:19:04 server dovecot: imap-login: Login: user=<user>, method=PLAIN, rip=xxx, lip=xxx, mpid=9360, TLS
May 7 21:19:04 server sendmail[9362]: q481J4qT009362: server [IP] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
Here is the SMTP section in the configuration
$rcmail_config['smtp_server'] = 'hostname';
$rcmail_config['smtp_port'] = 25;
$rcmail_config['smtp_user'] = '%u';
$rcmail_config['smtp_pass'] = '%p';
$rcmail_config['smtp_auth_type'] = '';
$rcmail_config['smtp_auth_cid'] = null;
I can send email via alpine on the same machine. The sendmail server is configured without authentication and only allow email sender from a fixed set of IP addresses. Is there anything wrong with the SMTP setting above?
Thanks