Author Topic: Authentication failure - Postfix SASL  (Read 7641 times)

Offline jamtur01

  • Newbie
  • *
  • Posts: 9
Authentication failure - Postfix SASL
« on: December 21, 2006, 02:06:18 AM »
Hi

I am getting the following error message:

[21-Dec-2006 17:58:19 +1100] SMTP Error: SMTP error: Authentication failure: Invalid response code received from server
 in /var/www/html/roundcube/program/steps/mail/sendmail.inc on line 253

The server I am connecting to is Postfix 2.3.3 using Dovecot SASL authentication. My master.cf has the following line:

smtps   inet n  -  n  -  -  smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes

And my main.inc.php has:

// use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = 'ssl://localhost';

// SMTP port (default is 25; 465 for SSL)
$rcmail_config['smtp_port'] = 465;

// SMTP username (if required) if you use %u as the username RoundCube
// will use the current username for login
$rcmail_config['smtp_user'] = '%u';

// SMTP password (if required) if you use %p as the password RoundCube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = '%p';

Anyone have any ideas?


Offline daashag

  • Full Member
  • ***
  • Posts: 198
Re: Authentication failure - Postfix SASL
« Reply #1 on: December 21, 2006, 04:09:53 AM »
What do you have this setting set to in your main.inc.php
Code: [Select]
// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = '';

Offline jamtur01

  • Newbie
  • *
  • Posts: 9
Re: Authentication failure - Postfix SASL
« Reply #2 on: December 21, 2006, 05:44:40 AM »
It's empty.

Regards

James Turnbull

Offline daashag

  • Full Member
  • ***
  • Posts: 198
Re: Authentication failure - Postfix SASL
« Reply #3 on: December 21, 2006, 05:51:50 AM »
Try LOGIN

Offline jamtur01

  • Newbie
  • *
  • Posts: 9
Re: Authentication failure - Postfix SASL
« Reply #4 on: December 21, 2006, 06:04:26 AM »
Thanks - I changed it to CRAM-MD5 (which is our standard auth mechanism) and it worked. Is there an issue with the detection routine?

Regards

James Turnbull

Offline daashag

  • Full Member
  • ***
  • Posts: 198
Re: Authentication failure - Postfix SASL
« Reply #5 on: December 21, 2006, 06:11:21 AM »
I suppose I really don't know. I know squirrel mail will auto detect and so will thunderbird but RC doesn't at least on my server.

Offline jamtur01

  • Newbie
  • *
  • Posts: 9
Re: Authentication failure - Postfix SASL
« Reply #6 on: December 21, 2006, 09:02:32 AM »
Okay - thanks for that. I might have a poke at the code and see why this is happening.

Regards

James Turnbull

Offline wetjet43

  • Jr. Member
  • **
  • Posts: 19
Re: Authentication failure - Postfix SASL
« Reply #7 on: February 01, 2007, 12:41:24 PM »
Has there been a fix for this yet? I've tried DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN and empty, and none of them work. I'm using RC with hmailserver. I get the little pink box every time saying "Failed to send message" the error log says:

SMTP Error: SMTP error: No From address has been provided
 in sendmail.inc on line 253

Not exactly sure where to go from here...? ??? :-[