Author Topic: Why SMTP Error (250): Authentication failed?  (Read 430 times)

Offline maximise

  • Newbie
  • *
  • Posts: 9
Why SMTP Error (250): Authentication failed?
« on: February 07, 2019, 06:10:30 AM »
Hello.
Roundcube is configured like this:

$rcmail_config['smtp_server'] = 'localhost';
$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;
$rcmail_config['smtp_auth_pw'] = null;
$rcmail_config['smtp_helo_host'] = 'localhost.localdomain';
$rcmail_config['smtp_timeout'] = 0;

when trying to send mail, an error occurs:
SMTP Error: SMTP error: Authentication failure: SMTP server does not support authentication (Code: ) in /usr/share/roundcubemail/program/include/rcmail.php on line  (POST /mail/?_unlock=loading1369676645733&_lang=ru?_task=mail&_action=send)

Please, help.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,172
Re: Why SMTP Error (250): Authentication failed?
« Reply #1 on: February 07, 2019, 08:38:03 AM »
your SMTP server does not support authentication so you should set:

$rcmail_config['smtp_user'] = '';
$rcmail_config['smtp_pass'] = '';

PS. what version of roundcube are you running? $rcmail_config was depreciate and replaced with $config in version 1.0
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline maximise

  • Newbie
  • *
  • Posts: 9
Re: Why SMTP Error (250): Authentication failed?
« Reply #2 on: February 08, 2019, 01:17:58 AM »
Roundcube 1.3.8.
I tried
$rcmail_config['smtp_user'] = '';
$rcmail_config['smtp_pass'] = '';

And now messages are sent, but inbox of addressee are empty. Why?

Offline alec

  • Hero Member
  • *****
  • Posts: 1,126
Re: Why SMTP Error (250): Authentication failed?
« Reply #3 on: February 08, 2019, 03:17:43 AM »
Authentication might be disabled on insecure channel. I would rather propose to try with:
$rcmail_config['smtp_server'] = 'tls://localhost';
$rcmail_config['smtp_port'] = 587;
$rcmail_config['smtp_user'] = '%u';
$rcmail_config['smtp_pass'] = '%p';

Offline maximise

  • Newbie
  • *
  • Posts: 9
Re: Why SMTP Error (250): Authentication failed?
« Reply #4 on: February 08, 2019, 03:53:49 AM »
Authentication might be disabled on insecure channel. I would rather propose to try with:
$rcmail_config['smtp_server'] = 'tls://localhost';
$rcmail_config['smtp_port'] = 587;
$rcmail_config['smtp_user'] = '%u';
$rcmail_config['smtp_pass'] = '%p';

I tried that. As a result, there was another error sending the message.

Offline maximise

  • Newbie
  • *
  • Posts: 9
Re: Why SMTP Error (250): Authentication failed?
« Reply #5 on: February 11, 2019, 08:51:27 AM »
Please help

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,172
Re: Why SMTP Error (250): Authentication failed?
« Reply #6 on: February 12, 2019, 02:35:44 AM »
Quote
And now messages are sent, but inbox of addressee are empty. Why?
I'm sorry but I'm not sure what this means, please could you explain a little more?
Quote
I tried that. As a result, there was another error sending the message.
What error?

Are you sure your SMTP server is working correctly, are you able to send messages with other clients? If so have you checked the SMTP server log for more details when trying to send messages using roundcube. Also you could turn on smtp_debug in the roundcube config and check that log for any more details.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline maximise

  • Newbie
  • *
  • Posts: 9
Re: Why SMTP Error (250): Authentication failed?
« Reply #7 on: February 13, 2019, 03:27:22 AM »
Quote
And now messages are sent, but inbox of addressee are empty. Why?
I'm sorry but I'm not sure what this means, please could you explain a little more?
Quote
I tried that. As a result, there was another error sending the message.
What error?

smtp error (250) authentication failed

Quote
Are you sure your SMTP server is working correctly, are you able to send messages with other clients? If so have you checked the SMTP server log for more details when trying to send messages using roundcube. Also you could turn on smtp_debug in the roundcube config and check that log for any more details.

My SMTP server is localhost. I tried from differents accounts.
when trying to send mail, an error occurs:
SMTP Error: SMTP error: Authentication failure: SMTP server does not support authentication (Code: ) in /usr/share/roundcubemail/program/include/rcmail.php on line  (POST /mail/?_unlock=loading1369676645733&_lang=ru?_task=mail&_action=send)

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,172
Re: Why SMTP Error (250): Authentication failed?
« Reply #8 on: February 15, 2019, 02:32:23 AM »
Are you sure your SMTP server is working correctly?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline maximise

  • Newbie
  • *
  • Posts: 9
Re: Why SMTP Error (250): Authentication failed?
« Reply #9 on: February 18, 2019, 06:23:12 AM »
Are you sure your SMTP server is working correctly?

I don't know.  :-\ :(