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

Offline maximise

  • Jr. Member
  • **
  • Posts: 18
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,845
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

  • Jr. Member
  • **
  • Posts: 18
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,363
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

  • Jr. Member
  • **
  • Posts: 18
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

  • Jr. Member
  • **
  • Posts: 18
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,845
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

  • Jr. Member
  • **
  • Posts: 18
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,845
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

  • Jr. Member
  • **
  • Posts: 18
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.  :-\ :(

Offline maximise

  • Jr. Member
  • **
  • Posts: 18
Re: Why SMTP Error (250): Authentication failed?
« Reply #10 on: February 20, 2019, 03:20:22 AM »
Hello again. This promblem still here  :(

If my config are:
$rcmail_config['smtp_server'] = 'localhost';
$rcmail_config['smtp_port'] = 25;
$rcmail_config['smtp_user'] = '%u';
$rcmail_config['smtp_pass'] = '%p';

Then I have a SMTP Error (250): Authentication failed?
log: 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)

If my config are:
$rcmail_config['smtp_user'] = '';
$rcmail_config['smtp_pass'] = '';

Then messages are sent, but the recipient does not receive the email message.

Also recipient does not receive the email message from another emails (not mydomain).

P.S. I found two files of config (config.inc and defaultts.inc) , but I think its not a problem.

Pls help with this.
« Last Edit: February 20, 2019, 03:44:43 AM by maximise »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: Why SMTP Error (250): Authentication failed?
« Reply #11 on: February 20, 2019, 04:46:56 AM »
Quote
Then messages are sent, but the recipient does not receive the email message.
Have you checked your SMTP logs to see what happened to the message after it left Roundcube?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline maximise

  • Jr. Member
  • **
  • Posts: 18
Re: Why SMTP Error (250): Authentication failed?
« Reply #12 on: February 20, 2019, 06:26:07 AM »
Quote
Then messages are sent, but the recipient does not receive the email message.
Have you checked your SMTP logs to see what happened to the message after it left Roundcube?

In errors of roundcube nothing

In "sendmail" :

[20-Feb-2019 11:08:23 +0300]: <sa3b> User admin@*** [192.168.XX]; Message for admin@***; 250: 2.0.0 Ok: queued as CD77522C30

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: Why SMTP Error (250): Authentication failed?
« Reply #13 on: February 20, 2019, 09:22:52 AM »
It sounds like roundcube is working properly and that log entry says that sendmail queued the message for delivery. I think you are going to have to keep tracing the message through the delivery process to find out where its gone. Perhaps the sendmail community can help you.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline larryjhammondd

  • Newbie
  • *
  • Posts: 1
Re: Why SMTP Error (250): Authentication failed?
« Reply #14 on: February 21, 2019, 01:47:35 AM »
Turn on debugging and check the Roundcube logs. Maybe you overwrote your config file? And the defaults are hitting the wrong port on the server that doesn't support authentication.

Did you git pull from a release tag or master?