Author Topic: Server setup: login, mail domain and SMTP authentication error  (Read 8956 times)

Offline cheerful

  • Newbie
  • *
  • Posts: 4
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 user@127.0.0.1 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
« Last Edit: May 07, 2012, 09:27:21 PM by cheerful »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: New server setup
« Reply #1 on: May 07, 2012, 12:48:08 PM »
check you config, have you set username_domain and mail_domain correctly?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline cheerful

  • Newbie
  • *
  • Posts: 4
Re: Server setup: login, mail domain and SMTP authentication error
« Reply #2 on: May 07, 2012, 09:26:29 PM »
$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

Offline cheerful

  • Newbie
  • *
  • Posts: 4
Re: Server setup: login, mail domain and SMTP authentication error
« Reply #3 on: May 08, 2012, 08:40:35 PM »
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'] = '';