Hi,
I am setting up a new mail server. Roundcube is set up to connect to the local IMAP-ssl. I've set the server to 127.0.0.1. For a brief moment, it logged in fine.
However, it shows email as
[email protected] and SMTP is failing (though alpine worked fine).
I update the 127.0.0.1 to the DNS name and now it will show log in failure.
What are the parameters that I need to tweak?
Thanks
check you config, have you set username_domain and mail_domain correctly?
$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
Made the following change and it's working now.
// SMTP server host (for sending mails).
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
// If left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = '';