Smtp ошибка 535 ошибка авторизации roundcube

If you are a Roundcube Webmail user, you might have faced this error and may have stuck when you have to send an urgent email. You need not worry, and if you are an admin you will be able to easily resolve it. 

if you are sending mails from Round Cube and while trying you are getting this error.

“SMTP Error (535): Authentication failed”

All you got to do to fix this is to make a change  in the RoundCube config file. In a normal server, roundcube config file, can be accessed through this path:  “/usr/share/roundcube/config/main.inc.php”

To fix the error you are getting, you will need to change the below value and save the config file.

$rcmail_config[‘smtp_user’] = ‘%u’;

to

$rcmail_config[‘smtp_user’] = ”;

Now, this should fix your issues and you should be able to send mails without any issues. 

If the problem persists, talk to our server helpdesk support experts to fix any issues you have. 

Gain comprehensive offers, cPanel Server Management services and a wide range of server administration support on all cPanel related works. 

Nixtree also provides other Server Management services, Plugin Development for control panel based servers, Server Security Services, Disaster Recovery Services and more

using ssl or tls. port 587 or 465,
%u %p for username and password. Tried all those, did not work.
Server does work with IPHONE and other mail client:

Error log:
Sep 12 12:22:09 myhost sm-mta[79292]: STARTTLS=server, relay=my.ip.addr [11.118.11.110], version=TLSv1.2, verify=NO, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/128
Sep 12 12:22:10 myhost sm-mta[79292]: u8CGM9N0079292: 11.22.33.verizon.net [11.118.11.110] did not issue MAIL/EXPN/VRFY/ETRN during connection to TLSMTA

It does work with IPHONE and other mail client: Here is the log from the working client.
Sep 12 12:42:23 myhost sm-mta[79533]: STARTTLS=server, relay=my.ip.addr [11.118.11.110](may be forged), version=TLSv1, verify=NO, cipher=ECDHE-RSA-AES256-SHA, bits=256/256
Sep 12 12:42:23 myhost sm-mta[79533]: AUTH=server, relay=my.ip.addr [11.118.11.110](may be forged), authid=myname, mech=LOGIN, bits=0

Содержание

  1. Не логинется в roundcube
  2. Vesta Control Panel — Forum
  3. Roundcube: Неудачная попытка входа
  4. Roundcube не хочет посылать письма

Переношу почтовый сервер. хочу на новом сервере чтобы roundcube работал через nginx и без https (сейчас apache + https) ОС debian8.

Когда пытаюсь залогиниться через вэб морду roundcube в логах /var/log/mail.err такая ошибка

Ещё есть такая ошибка, вылазит сама по себе

Подскажите как сделать чтоб логинилось?

Перемещено leave из general

Error: Login failed for z@test.ru from x.x.x.x. LOGIN: Authentication failed.

Проверяйте настройки аутентификации.

error: unsupported dictionary type: pcre

Подозреваю что не установлен postfix-pcre.

Подозреваю что не установлен postfix-pcre.

Можно по подробнее

Конфиг расположен примерно здесь: /etc/roundcubemail/config.inc.php
Настройки аутентификации при логине находятся в разделе IMAP.

Т.е. вторая проблема решилась?

Конфиг у меня тут /var/www/roundcube/web/config/config.inc.php

Проверьте доступные механизмы аутентификации и попробуйте залогиниться.

$config[‘imap_auth_type’] = ‘PLAIN’; попробуй.

Вот что получилось

Белая страница так получается, в логе ошибка не выскакивает

Если зайти на test.ru/installer/

Parse error: syntax error, unexpected ‘$config’ (T_VARIABLE) in /var/www/roundcube/web/config/config.inc.php on line 19

На 15 строку, в строке этот параметр

1 NO [AUTHENTICATIONFAILED] Authentication failed.

Ну так может у тебя imap-сервер криво настроен?

Может, как проверить?

Посмотреть конфиг/логи почтовика?

1 NO [AUTHENTICATIONFAILED] Authentication failed.

Да, похоже, что проблема с IMAP-сервером.

Упёрся в ошибку, не могу никак нагуглить, толи гугл не едет, то ли я .. )))

Надо смотреть лог dovecot в момент фейла аутентификации.
И скиньте конфиг на https://paste.fedoraproject.org/:

с imap разобрался, была в том что ошибка подключения к базе mysql.

Теперь с отправкой беда.

Из раундкуба ошибка

SMTP ошибка (535): Ошибка авторизации.

Наткнулся на каком то форуме что это может быть из-за php7, у меня на сервере стоит php7 из репозитория слушает стандартный порт. и стоит php5.4 собранный из сорцов, висит на 9001 порту.

отправка из консоли

в /var/log/mail.err после исправления ошибки с базой mysql — тишина

В тупике, подскажите куда дальше копать

Наткнулся на каком то форуме что это может быть из-за php7

Пока в консоли не заработает, PHP нет смысла трогать.

warning: proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf lookup error for «root@mx1.test.ru»

Проверьте наличие этого файла и права доступа к нему.
Убедитесь, что SQL-запрос успешно выполняется для указанного юзера.

файлик есть дал ему ранее 777 не помогло.

-rwxrwxrwx 1 root postfix 385 дек 3 2014 /etc/postfix/mysql/sender_bcc_maps_user.cf

Какой SQL-запрос имеется ввиду? и как узнать для какого пользователя?

Запрос, который прописан в этом файле.
Корректность проверять через postmap.

и как узнать для какого пользователя?

Для любого юзера, который есть в вашей базе.

Не может ли это быть как то связано что в качестве mysql используется mariadb?

Не может ли это быть как то связано что в качестве mysql используется mariadb?

Проблема не в этом.

Сравните настройки подключения к базе для postfix и dovecot.

Разобрался, путаница была в юзерах mysql и паролями к этим юзерам.

Источник

Vesta Control Panel — Forum

Roundcube: Неудачная попытка входа

Roundcube: Неудачная попытка входа

Post by sasha » Thu Dec 29, 2016 6:12 pm

Помогите, плз, решить проблему.
Данные:
KVM VPS
Linux version 3.2.0-4-amd64
ОС Debian7

Проблема возникла после попытки не очень удачного создания кириллического домена через панель.
Данные домена из конфигов удяляла вручную (/home/admin/conf/web/nginx.conf; /home/admin/conf/web/apache2.conf), так как через панель они не удалялись.
после через панель перезагрузила все сервисы — все прошло без ошибок и все работает кроме почты, хотя все почтовые сервисы перезагружаются через панель также без ошибок.

Re: Roundcube: Неудачная попытка входа

Post by Mr.Erbutw » Thu Dec 29, 2016 6:34 pm

Re: Roundcube: Неудачная попытка входа

Post by sasha » Thu Dec 29, 2016 6:45 pm

Re: Roundcube: Неудачная попытка входа

Post by Mr.Erbutw » Thu Dec 29, 2016 7:04 pm

Re: Roundcube: Неудачная попытка входа

Post by sasha » Thu Dec 29, 2016 7:46 pm

Спасибо за отклик!
Учетные данные всегда вводила как: name@sitename.ru
Пароль пробовала из панели сменить по типу: еще раз вбив старый пароль и утвердив его.

Вот логи /var/log/exim4/mainlog:

Доступ к почте пропал сразу же после неудачной попытки ввести через панель кириллический домен.
В конфигах апаче и нджинкса (те данные, что уже удалила вручную) были занесены данные хоста БЕЗ кириллического названия домена. пустые данные. предположение, что еще где-то остались данные от неудачной попытки занести через панель кириллический домен.

Если кто-то по проблеме кириллического домена может просветить, буду также благодарна.
Доменное имя вводила без предварительной кодировки.

Re: Roundcube: Неудачная попытка входа

Post by Mr.Erbutw » Thu Dec 29, 2016 8:19 pm

Re: Roundcube: Неудачная попытка входа

Post by sasha » Thu Dec 29, 2016 8:28 pm

Источник

Roundcube не хочет посылать письма

Обустраиваю почтовый сервер на FreeBSD 10.1. Поставил Postfix+Courier+Cyrus+Postfixadmin+Roundcube.

В Roundcube логинюсь нормально, читаю тестовые сообщения отправленные Postfixadmin’ом.

Но не могу отправить ни одного письма. Выдает в интерфейсе: «SMTP ошибка (250): Ошибка авторизации,» — и вот такое в логе Roundcube:

[24-Apr-2015 08:35:26 +0300]: SMTP Error: Authentication failure: SMTP server does not support authentication (Code: ) in /usr/local/www/roundcube/program/lib/Roundcube/rcube.php on line 1714 (POST /rc/?_task=mail&_unlock=loading1429853732832&_lang=undefined&_framed=1?_task=mail&_action=send)

При этом из Windows Live Mail, подключаясь к этому серверу под теми же аккаунтами, спокойно посылаю письма как с авторизацией по SSL, так и без SSL.

В чем может быть проблема, где копать?

Apr 24 12:48:13 imap authdaemond: Authenticated: sysusername= , sysuserid=125, sysgroupid=125, homedir=/var/virtualmail, address=valery.krizhevich, fullname=V.K, maildir=metalurgs.lv/valery.krizhevich/, quota=0, options=

Apr 24 12:48:13 imap authdaemond: Authenticated: clearpasswd=12345, passwd=$1$2729ec51$OTSLqnvfyZsQO89JPx6CU0

Apr 24 12:48:13 imap imapd: LOGIN, user=valery.krizhevich, ip=[::ffff:127.0.0.1], port=[25454], protocol=IMAP

Apr 24 12:48:13 imap imapd: LOGOUT, user=valery.krizhevich, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=49, sent=340, time=0 Apr 24 12:48:13 imap authdaemond: Authenticated: sysusername= , sysuserid=125, sysgroupid=125, homedir=/var/virtualmail, address=valery.krizhevich, fullname=V.K, maildir=metalurgs.lv/valery.krizhevich/, quota=0, options=

Apr 24 12:48:13 imap authdaemond: Authenticated: clearpasswd=12345, passwd=$1$2729ec51$OTSLqnvfyZsQO89JPx6CU0

Apr 24 12:48:13 imap imapd: LOGIN, user=valery.krizhevich, ip=[::ffff:127.0.0.1], port=[17483], protocol=IMAP

Apr 24 12:48:13 imap imapd: LOGOUT, user=valery.krizhevich, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=96, sent=620, time=0

Apr 24 12:48:14 imap authdaemond: Authenticated: sysusername= , sysuserid=125, sysgroupid=125, homedir=/var/virtualmail, address=valery.krizhevich, fullname=V.K, maildir=metalurgs.lv/valery.krizhevich/, quota=0, options=

Apr 24 12:48:14 imap authdaemond: Authenticated: clearpasswd=12345, passwd=$1$2729ec51$OTSLqnvfyZsQO89JPx6CU0

Apr 24 12:48:14 imap imapd: LOGIN, user=valery.krizhevich, ip=[::ffff:127.0.0.1], port=[45124], protocol=IMAP

Apr 24 12:48:14 imap authdaemond: Authenticated: sysusername= , sysuserid=125, sysgroupid=125, homedir=/var/virtualmail, address=valery.krizhevich, fullname=V.K, maildir=metalurgs.lv/valery.krizhevich/, quota=0, options=

Apr 24 12:48:14 imap authdaemond: Authenticated: clearpasswd=12345, passwd=$1$2729ec51$OTSLqnvfyZsQO89JPx6CU0

Apr 24 12:48:14 imap imapd: LOGIN, user=valery.krizhevich, ip=[::ffff:127.0.0.1], port=[58540], protocol=IMAP

Apr 24 12:48:14 imap imapd: LOGOUT, user=valery.krizhevich, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=178, sent=612, time=0

Apr 24 12:48:14 imap imapd: LOGOUT, user=valery.krizhevich, ip=[::ffff:127.0.0.1], headers=816, body=0, rcvd=320, sent=2130, time=0

Apr 24 12:48:19 imap authdaemond: Authenticated: sysusername= , sysuserid=125, sysgroupid=125, homedir=/var/virtualmail, address=valery.krizhevich, fullname=V.K, maildir=metalurgs.lv/valery.krizhevich/, quota=0, options=

Apr 24 12:48:19 imap authdaemond: Authenticated: clearpasswd=12345, passwd=$1$2729ec51$OTSLqnvfyZsQO89JPx6CU0

Apr 24 12:48:19 imap imapd: LOGIN, user=valery.krizhevich, ip=[::ffff:127.0.0.1], port=[49903], protocol=IMAP

Apr 24 12:48:19 imap imapd: LOGOUT, user=valery.krizhevich, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=40, sent=155, time=0

Apr 24 12:48:19 imap authdaemond: Authenticated: sysusername= , sysuserid=125, sysgroupid=125, homedir=/var/virtualmail, address=valery.krizhevich, fullname=V.K, maildir=metalurgs.lv/valery.krizhevich/, quota=0, options=

Apr 24 12:48:19 imap authdaemond: Authenticated: clearpasswd=12345, passwd=$1$2729ec51$OTSLqnvfyZsQO89JPx6CU0

Apr 24 12:48:19 imap imapd: LOGIN, user=valery.krizhevich, ip=[::ffff:127.0.0.1], port=[63388], protocol=IMAP

Apr 24 12:48:19 imap imapd: LOGOUT, user=valery.krizhevich, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=52, sent=396, time=0

Apr 24 12:48:38 imap postfix/smtpd[1627]: connect from localhost[127.0.0.1]

Apr 24 12:48:38 imap postfix/smtpd[1627]: disconnect from localhost[127.0.0.1]

[24-Apr-2015 12:48:38 Europe/Riga] PHP Deprecated: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 448

[24-Apr-2015 12:48:38 Europe/Riga] PHP Deprecated: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 465

[24-Apr-2015 12:48:38 Europe/Riga] PHP Deprecated: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 472

[24-Apr-2015 12:48:38 Europe/Riga] PHP Deprecated: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 515

[24-Apr-2015 12:48:38 Europe/Riga] PHP Deprecated: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263

[24-Apr-2015 12:48:38 Europe/Riga] PHP Deprecated: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 519

[24-Apr-2015 12:48:38 Europe/Riga] PHP Deprecated: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 615

[24-Apr-2015 12:48:38 Europe/Riga] ERROR: SMTP server does not support authentication ()

[24-Apr-2015 12:48:38 Europe/Riga] PHP Deprecated: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 1266

[24-Apr-2015 12:48:38 Europe/Riga] PHP Deprecated: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263

[24-Apr-2015 12:48:38 Europe/Riga] PHP Deprecated: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 1269

[24-Apr-2015 12:48:38 Europe/Riga] PHP Deprecated: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 489

[24-Apr-2015 12:48:38 Europe/Riga] PHP Deprecated: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263

[24-Apr-2015 12:48:38 Europe/Riga] PHP Deprecated: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 492

[24-Apr-2015 12:48:38 Europe/Riga] PHP Deprecated: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 495

[24-Apr-2015 12:48:38 +0300]: SMTP Error: Authentication failure: SMTP server does not support authentication (Code: ) in /usr/local/www/roundcube/program/lib/Roundcube/rcube.php array ( ‘label’ => ‘smtpautherror’, ‘vars’ => array ( ‘code’ => 250, ), ):: 1714 array ( 0 => ‘Authentication failure: SMTP server does not support authentication (Code: )’, ) on line 0 (POST /?_task=mail&_unlock=loading1429868925852&_lang=undefined&_framed=1?_task=mail&_action=send)

(Пытался отлаживать раундкьюб, вывел дамп переменных $error и $response в лог.)

Источник

Everyone expect mails to work flawlessly, but that doesn’t always work.

Occasionally, mail servers may reject emails with some strange errors, such as “SMTP Error (535): Authentication failed

At Bobcares, we often get requests from customers to fix SMTP errors as part of our Technical Support Services.

Today, we’ll see how our Support Engineers help our customers to resolve such tough email errors.

What is SMTP Authentication?

Mail client like Outlook uses SMTP (Simple Mail Transfer Protocol) to send messages. Later, to download the mails E-mail clients use either POP or IMAP protocol.

But, for any reason, if the authentication fails, mail client like Outlook generates an appropriate error message.

“SMTP Error (535): Authentication failed” error is usually related to the bad user email settings in Microsoft Outlook.

That’s why, Email client configuration always need special attention. Now, let’s see the reasons behind this error and how our Support Engineers correct it for customers.

Causes For the “Error 535: Authentication failed”

From our experience in managing servers, we often see customers experiencing Auth error 535 due to the following reasons:

1. Incorrect Username and Password

When the username and password entered in the Email client are incorrect, it ends up in Error 535. Again, using the wrong the mail server can also cause authentication failures.

Usually, such mismatch in email login and password will be recorded in the mail server logs. This helps greatly in finding the exact email account with problems.

2. Account Disabled

Similarly, at times account can be disabled because of reasons like payment dues or spamming issue. This will also result in SMTP Error (535): Authentication failed.

So, it’s worth to login to the control panel and check the status of the customer account as well as the email account.

3. SMTP Authentication

If your email client do not have SMTP authentication turned ON, it can also result in error. Now, we’ll check on how to enable SMTP Authentication in the server side and client side.

How to configure SMTP Authentication in a Mail client

Turning OFF SMTP Authentication in the email client, show up errors such as: “Server says: SMTP Error (535): Authentication failed: Authentication failure.”

Luckily, configuring SMTP authentication is simple procedure. It involves modifying the SMTP configuration settings and making necessary changes.

For example, to turn ON SMTP Authentication in Mozilla Thunderbird,

  1. Open Thunderbird, go to Tools -> Account Settings -> Outgoing Server (SMTP)
  2. Select the outgoing server by clicking on it, then click the Edit button
  3. Under Security and Authentication, check the “username and password” option
  4. Fill in your email account username and click Ok.

Finally, configuration will show up as below.

Enable SMTP auth in the server

We already saw how to turn on SMTP Auth in email client. But, for this to work, the mail server should support SMTP Authentication. Let’s see how our Dedicated Engineers enable this for our customers.

SMTP Auth in Plesk server

SMTP connections on a Plesk server typically need authentication. Recently, one of our customers requested us to fix the “SMTP Error (535): Authentication failed”. Here, the server was not having SMTP auth turned ON. Therefore, our Support Engineers solved the issue by enabling “SMTP authentication” from his Plesk server.

The exact sequence of steps that we did were:

  1. We logged into Plesk
  2. We checked the SMTP authorization status under Tools & Settings > Mail Server Settings > Relay options.
  3. Finally, we ensured correct settings in Tools & Settings > Mail Server Settings > Enable SMTP service on port 587 on all IP addresses.

Enable SMTP Authentication In cPanel

Let’s have look on the steps to enable SMTP auth in cPanel server. SMTP authentication in cPanel allow sending messages via POP-before-SMTP. Here, once when the Outlook download the mails, there is no need to re-authenticate to send mails through SMTP.

Usually, SMTP authentication will be disabled in WHM by default. To enable SMTP Authentication , we go to WHM >> Service Configuration >> Service Manager and select the Antirelayd checkbox.

[Struggling with SMTP Auth problems? We can fix it for  you.]

Conclusion

In short,“ SMTP Error (535): Authentication failed” error happens when there is a problem with SMTP configuration of email clients. Today, we saw how Bobcares solved “SMTP Error 535 Authentication failed”.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = «owonCMyG5nEQ0aD71QM»;



Modified on: Wed, 5 Feb, 2020 at 9:47 PM


Operations Automation

Operations Automation:7.1

Operations Automation:7.x

Symptoms

Unable to send an email message using Roundcube webmail. The following error message occurs in Roundcube web interface:

SMTP Error (535): Authentication failed. 

Cause

Incorrect configuration settings.

Resolution

Change Roundcube configuration file in the following way:

  1. Log in to Webmail Service node (by default, webmail clients are installed on Plesk Automation Management node, but webmail can be deployed as a separate node, as described in documentation)

  2. Locate main.inc.php configuration file:

    # rpm -qa|grep roundcube|xargs rpm -ql|grep main.inc.php
    /usr/share/psa-roundcube/config/main.inc.php
    
  3. Change smtp_user value from the following:

    # grep smtp_user /usr/share/psa-roundcube/config/main.inc.php
    $rcmail_config['smtp_user'] = '%u';
    

to the one below:

    # grep smtp_user /usr/share/psa-roundcube/config/main.inc.php
    $rcmail_config['smtp_user'] = '';

For Plesk 12: Roundcube configuration file is /usr/share/psa-roundcube/config/defaults.inc.php.

Internal content

Link on internal Article


Did you find it helpful?
Yes

No

Send feedback

Sorry we couldn’t be helpful. Help us improve this article with your feedback.

Related Articles

    Virtualmin Community

    Loading

    Понравилась статья? Поделить с друзьями:
  • Smtp ошибка 452 невозможно установить отправителя
  • Smtp ошибка 451 невозможно добавить получателя temporary lookup failure
  • Smtp ошибка 451 невозможно добавить получателя postfix
  • Smtp ошибка 451 temporary local problem please try later
  • Smtp ошибка 450 невозможно добавить получателя