Roundcube Community Forum

 

Why SMTP Error (250): Authentication failed?

Started by maximise, February 07, 2019, 06:10:30 AM

Previous topic - Next topic

maximise

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.

JohnDoh

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...

maximise

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?

alec

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';

maximise

Quote from: alec 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';

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


JohnDoh

QuoteAnd 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?
QuoteI 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...

maximise

Quote from: JohnDoh on February 12, 2019, 02:35:44 AM
QuoteAnd 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?
QuoteI tried that. As a result, there was another error sending the message.
What error?

smtp error (250) authentication failed

QuoteAre 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)

JohnDoh

Are you sure your SMTP server is working correctly?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

maximise


maximise

#10
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.

JohnDoh

QuoteThen 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...

maximise

Quote from: JohnDoh on February 20, 2019, 04:46:56 AM
QuoteThen 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

JohnDoh

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...

larryjhammondd

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?