Smtp ошибка 454

Wondering how to fix Roundcube SMTP error (454) authentication failed? We can help you!This error is often seen while trying to send emails via Roundcube.

Wondering how to fix Roundcube SMTP error (454) authentication failed? We can help you!

This error is often seen while trying to send emails via Roundcube. Here at Bobcares, we often handle requests from our customers to fix similar Roundcube errors.

Today we will see how our support engineers fix this for our customers as a part of our Server Management Services.

What causes Roundcube ‘SMTP error (454) authentication failed’

Before going into the steps for fixing this error, we will see what causes this error and how it looks like.

A typical error may look like the one given below:

SMTP Error: Authentication failure: Invalid response code received from server (Code: 454)

The following warnings will appear in the /var/log/maillog if we get this error :

Mar 20 22:13:01 postfix/smtpd[28890]: warning: SASL authentication failure: no secret in database
Mar 20 22:13:01 postfix/smtpd[28890]: warning: localhost[::1]: SASL DIGEST-MD5 authentication failed: authentication failure

Following are the two main causes for this error:

  •  Broken Postfix configuration.
  •  The pc-remote service is stopped.

Methods to fix Roundcube ‘SMTP error (454) authentication failed’

Now we will see how our Support engineers fi this error for our customers.

1. Fixing Broken Postfix configuration.

Here we will reinstall Postfix by switching to Qmail and back to Postfix.

This can the done in the following ways.

Using Plesk Installer:

The steps to follow are given below:

  1. Firstly, go to Plesk and take Tools & Settings.
  2. Then go to Updates and Upgrades.
  3. And take Add/Remove Components then go to Mail hosting.
  4. After that take SMTP servers and select the Qmail server.
  5. Next, we have to click Continue to start the installation.
  6. Once the installation is complete click Ok.
  7. Now go to Add/Remove Components and take Mail hosting.
  8. From Mail hosting go to SMTP servers.
  9. Select Postfix mail server and click Continue to start the installation.

roundcube smtp error (454) authentication failed

10. Once the installation is complete click Ok.

Using Command Line Interface (CLI):

We can use the following steps for fixing this via CLI:

  1. First, we have to connect to the server via SSH;
  2. Then execute the following commands:
# plesk installer --select-release-current --install-component qmail
# plesk installer --select-release-current --install-component postfix

2. Starting pc-remote service

This error can also occur if the pc-remote service is stopped. However, the error in the /var/log/maillog appears a little different as shown below:

warning: connect to Milter service inet:127.0.0.1:12768: Connection refused NOQUEUE: milter-reject: CONNECT from example.com[203.0.113.2]: 451 4.7.1 Service unavailable – try again later; proto=SMTP

Following are the steps to fix this:

  1. First, we have to log in to Plesk.
  2. Then go to Tools & Settings and Scheduled Tasks.
  3. From there take Add Task.
  4. After that select Task Type as Run a command
  5. In the Command * field paste the line below:
/usr/sbin/service pc-remote start

6. Now we have to select root from the drop-down menu System user


roundcube smtp error (454) authentication failed 

7. Finally click the Run Now button to start the pc-remote service.

[Need assistance? We can help you]

Conclusion

In short, we saw how our Support Engineers fix Roundcube ‘SMTP error (454) authentication failed’ issue for our customers.

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

Ниже перечислены сообщения об ошибках и коды ошибок, которые вы можете встретить при работе с Gmail и Google Workspace. Эти сообщения и коды помогают найти и устранить проблему с электронной почтой.

Чтобы обозначить источник ошибки, Gmail добавляет в конец сообщения один или оба из следующих фрагментов:

  • gsmtp (Google SMTP): добавляется во все сообщения об ошибках;
  • gcdp (Google Custom Domain Policies): добавляется в сообщения об ошибках, связанных с правилами, которые созданы администратором.

Например, сообщение 550 5.7.1 This message violates example.com email policy. – gcdp <sessionid> – gsmtp (Это сообщение нарушает политику example.com в отношении электронной почты. – gcdp <sessionid> – gsmtp) указывает, что ошибка связана с персонализированным правилом, созданным администратором.

Подробнее о сообщениях об ошибках SMTP…

Примечание. Ошибка 2014 связана с расширением браузера Chrome. По очереди отключите расширения Chrome, чтобы определить, какое из них вызывает ошибку. Сообщение об ошибке 2014: В системе произошла ошибка (2014). Повторите попытку.

Сообщения об ошибках протокола SMTP

421, «4.3.0». Временные неполадки в системе. Повторите попытку позже
421, «4.4.5», Server busy, try again later. (Сервер занят. Повторите попытку позже.)
421, «4.7.0», IP not in whitelist for RCPT domain, closing connection. (Соединение прервано, так как IP-адрес отсутствует в белом списке домена RCPT.)
421, «4.7.0», Our system has detected an unusual rate of unsolicited mail originating from your IP address. To protect our users from spam, mail sent from your IP address has been temporarily blocked. For more information, visit Prevent mail to Gmail users from being blocked or sent to spam. (С вашего IP-адреса с необычной частотой поступают незапрашиваемые сообщения. Почта, отправляемая с вашего IP-адреса, временно заблокирована для защиты пользователей от спама. Дополнительная информация приведена в статье Как предотвратить блокировку почты, предназначенной пользователям Gmail, или ее отправку в папку «Спам».)
421, «4.7.0», Temporary System Problem. Try again later. (Временные неполадки в системе. Повторите попытку позже.)
421, «4.7.0», TLS required for RCPT domain, closing connection. (Соединение прервано, так как для домена RCPT требуется протокол TLS.)
421, «4.7.0», Try again later, closing connection. This usually indicates a Denial of Service (DoS) for the SMTP relay at the HELO stage. (Соединение прервано. Повторите попытку позже. Эта ошибка обычно указывает на атаку типа «отказ в обслуживании» (DoS) для ретрансляции SMTP на этапе HELO.)
450, «4.2.1», The user you are trying to contact is receiving mail too quickly. Please resend your message at a later time. If the user is able to receive mail at that time, your message will be delivered. For more information, visit Limits for sending & getting mail. (Пользователь, которому вы пытаетесь отправить письмо, получает почту слишком часто. Отправьте сообщение позже. Если к тому времени пользователь сможет получать почту, ваше письмо будет доставлено. Дополнительная информация приведена в статье Ограничения на отправку и получение писем.)
450, «4.2.1», The user you are trying to contact is receiving mail at a rate that prevents additional messages from being delivered. Please resend your message at a later time. If the user is able to receive mail at that time, your message will be delivered. For more information, visit Limits for sending & getting mail. (Пользователь, которому вы пытаетесь отправить письмо, получает почту со скоростью, которая не позволяет доставлять ему дополнительные сообщения. Отправьте сообщение позже. Если к тому времени пользователь сможет получать почту, ваше письмо будет доставлено. Дополнительная информация приведена в статье Ограничения на отправку и получение писем.)
450, «4.2.1», Peak SMTP relay limit exceeded for customer. This is a temporary error. For more information on SMTP relay limits, please contact your administrator or visit SMTP relay service error messages. (Превышено пиковое ограничение на ретрансляцию для клиента. Это временная ошибка. Чтобы получить подробную информацию об ограничениях, ознакомьтесь с этой статьей или свяжитесь с администратором.)
451, «4.3.0», Mail server temporarily rejected message. (Почтовый сервер временно отклонил сообщение.)
451, «4.3.0», Multiple destination domains per transaction is unsupported. Please try again. (Использование нескольких целевых доменов для одной операции не поддерживается. Повторите попытку.)
451, «4.4.2», Timeout — closing connection. (Время ожидания истекло – соединение прервано.)
451, «4.5.0», SMTP protocol violation, visit RFC 2821. (Нарушение протокола SMTP, см. RFC 2821.)
452, «4.2.2», The email account that you tried to reach is over quota. Please direct the recipient to Clear Google Drive space & increase storage. (В аккаунте получателя закончилось свободное место. Предложите получателю ознакомиться с этой статьей.)

452, «4.5.3», Domain policy size per transaction exceeded, please try this recipient in a separate transaction.
This message means the email policy size (size of policies, number of policies, or both) for the recipient domain has been exceeded. (Превышен максимальный размер правил домена для транзакции. Выполните отдельную транзакцию для этого получателя. Это сообщение указывает на превышение максимального размера и (или) количества правил электронной почты для домена получателя.)

452, «4.5.3», Your message has too many recipients. For more information regarding Google’s sending limits, visit Limits for sending & getting mail. (У вашего сообщения слишком много получателей. Дополнительная информация приведена в статье Ограничения на отправку и получение писем.)
454, «4.5.0», SMTP protocol violation, no commands allowed to pipeline after STARTTLS, visit RFC 3207. (Нарушение протокола SMTP, после STARTTLS для потока запрещены другие команды, см. RFC 3207.)
454, «4.7.0», Cannot authenticate due to temporary system problem. Try again later. (Не удалось выполнить аутентификацию из-за временных неполадок в системе. Повторите попытку позже.)
454, «5.5.1», STARTTLS may not be repeated. (Запрещено повторять команду STARTTLS.)
501, «5.5.2», Cannot Decode response. (Не удалось расшифровать ответ.)
501, «5.5.4», HELO/EHLO argument is invalid. For more information, visit HELO/EHLO email error. (Недопустимый аргумент HELO/EHLO. Дополнительная информация приведена в статье Ошибка HELO/EHLO.)
502, «5.5.1», Too many unrecognized commands, goodbye. (Слишком много нераспознанных команд.)
502, «5.5.1», Unimplemented command. (Незадействованная команда.)
502, «5.5.1», Unrecognized command. (Нераспознанная команда.)
503, «5.5.1», EHLO/HELO first. (Сначала команда EHLO/HELO.)
503, «5.5.1», MAIL first. (Сначала команда MAIL.)
503, «5.5.1», RCPT first. (Сначала команда RCPT.)
503, «5.7.0», No identity changes permitted. (Запрещены изменения идентификационных данных.)
504, «5.7.4», Unrecognized Authentication Type. (Нераспознанный тип аутентификации.)
530, «5.5.1», Authentication Required. For more information, visit Can’t sign in to your Google Account. (Необходима аутентификация. Дополнительная информация приведена в статье Не удается войти в аккаунт Google.)
530, «5.7.0», Must issue a STARTTLS command first. (Сначала необходима команда STARTTLS.)
535, «5.5.4», Optional Argument not permitted for that AUTH mode. (Для этого режима AUTH запрещен необязательный аргумент.)
535, «5.7.1», Application-specific password required. For more information, visit Sign in using App Passwords. (Требуется пароль приложения. Дополнительная информация приведена в статье Как войти в аккаунт с помощью паролей приложений.)
535, «5.7.1», Please log in with your web browser and then try again. For more information, visit Check Gmail through other email platforms. (Войдите через браузер и повторите попытку. Дополнительная информация приведена в статье Как настроить доступ к Gmail в сторонних почтовых клиентах.)
535, «5.7.1», Username and Password not accepted. For more information, visit Can’t sign in to your Google Account. (Имя пользователя и пароль не приняты. Дополнительная информация приведена в статье Не удается войти в аккаунт Google.)
550, «5.1.1», The email account that you tried to reach does not exist. Please try double-checking the recipient’s email address for typos or unnecessary spaces. For more information, visit Fix bounced or rejected emails. (Аккаунт электронной почты получателя не существует. Проверьте ещё раз, правильно ли указан адрес электронной почты и нет ли в нем пробелов. Дополнительная информация приведена в статье Что делать, если письмо отклонено.)
550, «5.2.1», The email account that you tried to reach is disabled. (Аккаунт электронной почты получателя отключен.)
550, «5.2.1», The user you are trying to contact is receiving mail at a rate that prevents additional messages from being delivered. For more information, visit Limits for sending & getting mail. (Пользователь, которому вы пытаетесь отправить письмо, получает почту со скоростью, которая не позволяет доставлять ему дополнительные сообщения. Дополнительная информация приведена в статье Ограничения на отправку и получение писем.)
550, «5.4.5», Daily sending quota exceeded. For more information, visit Email sending limits. (Исчерпан дневной лимит на отправку сообщений. Дополнительная информация приведена в статье Ограничения в Google Workspace на отправку электронных писем из Gmail.)
550, «5.4.5», Daily SMTP relay limit exceeded for user. For more information on SMTP relay sending limits please contact your administrator or visit SMTP relay service error messages. (Превышено суточное ограничение на ретрансляцию для клиента. Чтобы получить подробную информацию об ограничениях, ознакомьтесь с этой статьей или свяжитесь с администратором.)
550, «5.7.0», Mail relay denied. (Почтовый ретранслятор запрещен.)
550, «5.7.0», Mail Sending denied. This error occurs if the sender account is disabled or not registered within your Google Workspace domain. (Отправка почты запрещена. Эта ошибка возникает, если аккаунт отправителя заблокирован или не зарегистрирован в домене Google Workspace.)
550, «5.7.1», Email quota exceeded. (Превышена квота электронной почты.)
550, «5.7.1», Invalid credentials for relay. (Неверные учетные данные ретранслятора.)
550, «5.7.1», Our system has detected an unusual rate of unsolicited mail originating from your IP address. To protect our users from spam, mail sent from your IP address has been blocked. Review Prevent mail to Gmail users from being blocked or sent to spam. (C вашего IP-адреса с необычной частотой поступают незапрашиваемые сообщения. Почта, отправляемая с вашего IP-адреса, заблокирована для защиты пользователей от спама. Подробную информацию читайте в статье Как предотвратить блокировку почты, предназначенной пользователям Gmail, или ее отправку в папку «Спам».)
550, «5.7.1», Our system has detected that this message is likely unsolicited mail. To reduce the amount of spam sent to Gmail, this message has been blocked. For more information, visit Why has Gmail blocked my messages? (Это сообщение было классифицировано системой как вероятный спам и заблокировано в целях уменьшения количества спама, отправляемого в Gmail. Дополнительная информация приведена в статье Почему мои письма в Gmail заблокированы.)
550, «5.7.1», The IP you’re using to send mail is not authorized to send email directly to our servers. Please use the SMTP relay at your service provider instead. For more information, visit ‘The IP you’re using to send email is not authorized…’. (IP-адрес, который используется для отправки почты, не имеет разрешения на отправку сообщений непосредственно на наши серверы. Используйте для отправки ретранслятор SMTP своего поставщика услуг. Дополнительная информация приведена в этой статье.)
550, «5.7.1», The user or domain that you are sending to (or from) has a policy that prohibited the mail that you sent. Please contact your domain administrator for further details. For more information, visit Sorry, a policy is in place that prevents your message from being sent. (Для пользователя или домена, от которого или которому отправляются сообщения, установлено правило, запрещающее отправленную вами почту. Для получения дополнительной информации ознакомьтесь с этой статьей и обратитесь к своему администратору домена.)
550, «5.7.1», Unauthenticated email is not accepted from this domain. (Почта без аутентификации от этого домена не принимается.)
550, «5.7.1», Daily SMTP relay limit exceeded for customer. For more information on SMTP relay sending limits please contact your administrator or visit SMTP relay service error messages. (Превышено суточное ограничение на ретрансляцию для клиента. Чтобы получить подробную информацию об ограничениях, ознакомьтесь со статьей Сообщения об ошибках службы ретрансляции SMTP или свяжитесь с администратором.)
550, «5.7.26», Unauthenticated email from domain-name is not accepted due to domain’s DMARC policy. Please contact the administrator of domain-name domain. If this was a legitimate mail please visit Control unauthenticated mail from your domain to learn about the DMARC initiative. If the messages are valid and aren’t spam, contact the administrator of the receiving mail server to determine why your outgoing messages don’t pass authentication checks. (Электронное письмо от [доменное имя] не прошло аутентификацию и запрещено правилами DMARC домена. Обратитесь к администратору домена. Если письмо запрещено по ошибке, ознакомьтесь со сведениями об инициативе DMARC в статье «Проблемы с проверкой подлинности сообщений из вашего домена» и обратитесь к администратору почтового сервера получателя, чтобы определить, почему ваши исходящие письма не проходят аутентификацию.)

550, «5.7.26», «This message does not have authentication information or fails to pass authentication checks (SPF or DKIM). To best protect our users from spam, the message has been blocked. Please visit Prevent mail to Gmail users from being blocked or sent to spam for more information.» (Для этого письма нет информации о прохождении аутентификации (SPF или DKIM), или оно ее не прошло. Оно заблокировано, чтобы защитить наших пользователей. Более подробная информация приведена в статье «Как предотвратить блокировку почты, предназначенной пользователям Gmail, или ее отправку в папку «Спам».)

550, «5.7.26», «This message fails to pass SPF checks for an SPF record with a hard fail policy (-all). To best protect our users from spam and phishing, the message has been blocked. Please visit Prevent mail to Gmail users from being blocked or sent to spam for more information.» (Это письмо не прошло проверки SPF для записи со строгими правилами (-all). Оно заблокировано, чтобы защитить наших пользователей от спама и фишинга. Более подробная информация приведена в статье «Как предотвратить блокировку почты, предназначенной пользователям Gmail, или ее отправку в папку «Спам».)
552, «5.2.2», The email account that you tried to reach is over quota. (Для аккаунта электронной почты получателя превышена квота.)
552, «5.2.3», Your message exceeded Google’s message size limits. For more information, visit Send attachments with your Gmail message. (Превышен максимально допустимый размер сообщения. Дополнительная информация приведена в статье Прикрепление файлов к письмам в Gmail.)
553, «5.1.2», We weren’t able to find the recipient domain. Please check for any spelling errors, and make sure you didn’t enter any spaces, periods, or other punctuation after the recipient’s email address. (Не удалось найти домен получателя. Проверьте правильность адреса электронной почты получателя и убедитесь, что после него нет пробелов, точек и других знаков пунктуации.)
554, «5.6.0», Mail message is malformed. Not accepted. (Сообщение электронной почты не принято, так как имеет недопустимый формат.)
554, «5.6.0», Message exceeded 50 hops, this may indicate a mail loop. (Сообщение пересылалось более 50 раз, что может указывать на наличие почтового цикла.)
554, «5.7.0», Too Many Unauthenticated commands. (Слишком много команд без аутентификации.)
555, «5.5.2», Syntax error. (Синтаксическая ошибка.)

Эта информация оказалась полезной?

Как можно улучшить эту статью?


0

1

Всем привет. Я полный линуксонуб, но так вышло, что я админю сервер, на котором крутятся сайты, ну как админю, на нем установлена панель управления plesk, и почти все сводится к настройкам через нее,но не в этот раз.
Ни с того ни с сего перестала работать почта на сервере. До этого два года работал без всяких проблем. Всё, что я менял, это для одного из доменов прописывал A запись на внешнюю яндекс почту, но это даже другой домен. Веб-приложение roundcube, которое используется для отправки почты, стало выдавать такую ошибку при отправке: «SMTP Error (454): Ошибка авторизации»
Я усердно гуглил, как бы это исправить, но ничего не нагуглил.
Я даже не могу найти конфиг rouncube, какие-то конфиги нахожу, но они совсем не похожи на то, что пишут на форумах.
В логах roundcube(/var/log/plesk-roundcube/errors) сплошные ворнинги, не вижу там никаких ошибок, а может это не тот лог, вот последний кусок

[15-Feb-2016 18:45:39 UTC] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_db.php on line 758

Нашел еще лог maillog (usr/local/psa/var/log)
Пишет, что какой-то сервис не доступен

Feb 15 20:48:28 km20833-24 postfix/cleanup[29971]: warning: connect to Milter service unix:/var/spool/postfix/ctmilter/ctmilter.sock: No such file or directory
Feb 15 20:48:28 km20833-24 postfix/cleanup[29971]: 996BB8FE25F3: milter-reject: CONNECT from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=<root@km20833-24.keymachine.de>
Feb 15 20:48:28 km20833-24 postfix/pickup[28439]: warning: 9996A8FE25F3: message has been queued for 1 days
Feb 15 20:48:28 km20833-24 postfix/pickup[28439]: 9996A8FE25F3: uid=0 from=<root>
Feb 15 20:48:28 km20833-24 postfix/cleanup[29971]: warning: connect to Milter service unix:/var/spool/postfix/ctmilter/ctmilter.sock: No such file or directory
Feb 15 20:48:28 km20833-24 postfix/cleanup[29971]: 9996A8FE25F3: milter-reject: CONNECT from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=<root@km20833-24.keymachine.de>
Feb 15 20:48:28 km20833-24 postfix/pickup[28439]: warning: 99BA48FE25F3: message has been queued for 4 days
Feb 15 20:48:28 km20833-24 postfix/pickup[28439]: 99BA48FE25F3: uid=10000 from=<volfilarmonia>
Feb 15 20:48:28 km20833-24 postfix/cleanup[30003]: warning: connect to Milter service unix:/var/spool/postfix/ctmilter/ctmilter.sock: No such file or directory
Feb 15 20:48:28 km20833-24 postfix/cleanup[30003]: 99BA48FE25F3: milter-reject: CONNECT from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=<volfilarmonia@km20833-24.keymachine.de>

Подскажите, плиз, куда копать? Саппорт хостинга меня посылает и просит подписку купить, чтобы они мне помогали в таких вопросах.

I have set up SMTP server with gmail account. It was working fine till few days back. When I checked the logs I found below entry in it:

SMTP Error: 454 4.7.0 Too many login attempts, please try again later.

I have restarted SMTP service twice. I have checked the configuration that was set up using this link. Everything is same as we have set up. I have restarted the SMTP server & the machine too.

I have checked for 2 step verification settings. It is not enabled. I have checked for «less secure» apps settings and it is set to Enabled as suggested here.

I have checked apps enabled as suggested here using below link.

https://security.google.com/settings/security/permissions?pli=1

But no apps are added. Can anyone suggest anything that I need to look for? Thanks in advance.

Community's user avatar

asked Nov 11, 2016 at 14:32

love thakker's user avatar

It is because you are attempting to create a new smtp connection for each email. You need to use SMTP pool.

Please see:

DELIVERING BULK MAIL

POOLED SMTP

Pooled smtp is mostly useful when you have a large number of messages that you want to send in batches or your provider allows you to only use a small amount of parallel connections.

If you are using Node-mailer:

const transporter = nodemailer.createTransport({
    host: 'smtp.gmail.com',
    port: 465,
    secure: true,
    pool: true, // This is the field you need to add
    auth: {
       user: 'test@test.com',
       pass: 'your_password' 
}});

Then, you need to close the pool once you send all the emails.

transporter.close();

answered Jan 22, 2019 at 0:36

Johnson's user avatar

JohnsonJohnson

1891 silver badge9 bronze badges

1

I had the same issue. When I checked the Mail queue there were many unprocessed mails in the queue.
So I deleted the bulk mails and restarted the instance. Once the Mail Queue is cleared then it started to send mails as usual.

Hope this will be useful for anybody to have the above issue.

answered Nov 15, 2019 at 15:43

kds's user avatar

kdskds

27.9k9 gold badges38 silver badges55 bronze badges

The Issue resolved with the TCP port changing to 587 from 25 in Outbound Connections settings in SMTP Server.

answered Jan 6, 2017 at 8:55

love thakker's user avatar

love thakkerlove thakker

4422 gold badges13 silver badges29 bronze badges

0

please follow the instructions below:

  • Open Gmail from a browser and only sign into the account you’re
    trying to add. Be sure to be signed out of all your other accounts

    Go to this link: https://accounts.google.com/b/0/displayunlockcaptcha and click
    Continue or confirm.

    Now Test your program it will work fine

answered Jan 31, 2017 at 17:31

Hassan Saeed's user avatar

Hassan SaeedHassan Saeed

5,8511 gold badge33 silver badges37 bronze badges

1

The Issue resolved change the password mail server password

answered Oct 20, 2019 at 15:25

Diego Cumbicus's user avatar

It may be because the mail’s size is greater than the allowed size (25MB).

answered Nov 13, 2021 at 14:44

hugholousk's user avatar

hugholouskhugholousk

1492 silver badges9 bronze badges

Roundcube is a free and open source webmail tool. That’s why it’s adopted by many admins as part of email management practice. But as with other tools, you’re likely to come across a few errors from time to time. And one of them is the SMTP (454) Error. You’ll get this error when trying to send emails using Roundcube. If you’re stuck with this error, you might be looking for ways to fix it. In this article, learn how to solve the SMTP authentication failed error in Roundcube.

Why this Error Occurs?

Before fixing the error, it’s worth learning about the cause.

When you see this error, you’ll receive a message that reads, “SMTP Error: Authentication failure: Invalid response code received from server (Code: 454)”

If you get the following error, then you can access it at /var/log/maillog:

Code:

“Jun 20 21:10:02 postfix/smtpd[28890]: warning: SASL authentication failure: no secret in database
Jun 20 21:10:03 postfix/smtpd[28890]: warning: localhost[::1]: SASL DIGEST-MD5 authentication failed: authentication failure”

The two main reasons behind this error are:

  • Postfix configuration is broken
  • Pc-remote service is stopped

How to Fix the Error?

How to fix the error will depend on the reason behind the error. So you need to follow the appropriate solution.

  • Fixing the Broken Postfix config

When the postfix configuration is broken, you’d have to reinstall Postfix. You can do this by first moving to Qmail briefly and then jump back to Postfix. This can be done in a couple of ways.

Use Plesk Installer

Here are the steps to follow:

  • Go to Plesk and then take Tools & Settings
  • Then navigate into Updates.

plesk1.png

  • Take Add/Remove Components and then navigate into Mail hosting.

plesk2.png

  • Take SMTP servers and then select Qmail server
  • Select “Continue” to initiate the installation process
  • After the process is done, click on OK
  • Navigate into Add/Remove Components and take Mail hosting
  • Then navigate into SMTP servers to select Postfix mail
  • Click on Continue to begin the installation process
  • Once done, click on OK

Using CLI

You can use the Command Line Interface as well. Here are the steps involved:

  • Connect to your server using SSH terminal
  • Run the below commands:

Code:

# plesk installer --select-release-current --install-component qmail
# plesk installer --select-release-current --install-component postfix

Pc-remote Service is Stopped

If this is the reason, then you have to start the service.

Another thing to note is that there will be a difference in the error message you get. If you open the /var/log/maillog file, you’ll notice the following message:

Code:

warning: connect to Milter service inet:127.0.0.1:12768: Connection refused NOQUEUE: milter-reject: CONNECT from example.com[203.0.113.2]: 451 4.7.1 Service unavailable – try again later; proto=SMTP

To fix this, you’d have to follow these steps:

  • Log in to your Plesk account
  • Open Tools & Settings and then Scheduled Tasks

plesk3.png

  • Take Add Task

plesk4.png

  • Select Task Type as Run a Command
  • When you see the Command* section, paste this line —

Code:

/usr/sbin/service pc-remote start

  • For the section “System User” select “root” from the drop down menu
  • Tap on the “Run Now” button to start the service

So that’s how you fix the SMTP (454) error.

I discovered that while it was possible to use Gmail/Google Apps as an SMTP server for scripted use, if too many emails were sent I started getting error messages:

SMTP Error: 454 4.7.0 Too many login attempts, please try again later.

Usually if I waited an hour or two I could send out another 100 emails or so, but I would soon run into the same error message again.

asked Oct 1, 2013 at 15:44

AlexMax's user avatar

I discovered that the problem was that although we had SPF records set up for our domains, we did not have a DKIM record associated with our domain. In order to add a DKIM record in Google Apps, you need to do the following:

  • Go to the Admin Console
  • Click on «Google Apps»
  • Click on «Gmail»
  • Scroll down until you see «Authenticate Email» and click that
  • Select the domain you wish to add DKIM to
  • When it asks what prefix you want to use, simply use the default of ‘google’

You will then see a TXT record in two parts, one piece has the domain and the other has the actual TXT record. You need to go into your DNS settings on your server for your domain and add this record. If your DNS control panel does not allow you to add the domain of google._domainkey, simply make the domain fully qualified like google._domainkey.example.com.

After you do this, give the DNS record a little bit of time to propagate and then click «Start Authentication» in the Google Apps admin panel. If you see a green checkmark, you’ve done it, and email should start flowing through the SMTP server once again.

answered Oct 1, 2013 at 15:44

AlexMax's user avatar

AlexMaxAlexMax

5231 gold badge5 silver badges15 bronze badges

2

You must not authenticate for each email you should send.

At the beginning of the process:

Session session = loadSession();
Transport transport = session.getTransport("smtp");
transport.connect("example@gmail.com", "password");

After, use the transport object for send each mail without start session:

transport.sendMessage(message, message.getAllRecipients());

After you send all emails, you should close the connection:

transport.close();

answered Feb 25, 2015 at 22:13

victorpacheco3107's user avatar

solution from @victorpacheco3107 worked for me, this what I did in ruby:

settings = {
  address:        "smtp.gmail.com",
  port:           587,
  domain:         "mydomain.com",
  user_name:      "user@mydomain.com",
  password:       "password",
  authentication: "plain"
}

smtp_conn = Net::SMTP.new(settings[:address], settings[:port])
smtp_conn.enable_starttls_auto
smtp_conn = smtp_conn.start(settings[:domain],
                            settings[:user_name],
                            settings[:password],
                            settings[:authentication])
Mail.defaults do
  delivery_method :smtp_connection, { :connection => smtp_conn }
end

# send mails..
mail = Mail.new
mail.to('...')
# more mail stuff..
mail.deliver!

# after all mails are sent, end session
smtp_conn.finish

answered Apr 22, 2016 at 15:40

Lluís's user avatar

LluísLluís

4251 gold badge4 silver badges22 bronze badges

Using SMTP when you send bulk email it login with every single mail and then logout. Because of that googles blocks your connection. What worked for me is is to set SMTPKeepAlive to true.

answered Jun 7, 2019 at 15:55

kushal parikh's user avatar

1

Pages 1

You must login or register to post a reply

1 2019-09-06 06:31:44

  • romfeo
  • Member
  • Offline
  • Registered: 2018-04-05
  • Posts: 17

Topic: SMTP Error (454): Authentication failed.

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
— iRedMail version (check /etc/iredmail-release):  0.9.9 MARIADB edition.
— Deployed with iRedMail Easy or the downloadable installer? Downloadable Installer
— Linux/BSD distribution name and version:  Ubuntu 18.04.3 LTS bionic
— Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
— Web server (Apache or Nginx): NGINX
— Manage mail accounts with iRedAdmin-Pro? NO
— [IMPORTANT] Related original log or error message is required if you’re experiencing an issue.
====

Its a fresh installation. Not my first either.

I am testing email in roundcube.

I can receive fine.

When I try to send I get the following error in Roundcube:

SMTP Error (454): Authentication failed.

I then receive an email in my inbox with this content:

Transcript of session follows.

Out: 220 webserver.bio-olives.com ESMTP Postfix
In:  EHLO bio-olives.com
Out: 250-webserver.bio-olives.com
Out: 250-PIPELINING
Out: 250-SIZE 15728640
Out: 250-ETRN
Out: 250-STARTTLS
Out: 250-ENHANCEDSTATUSCODES
Out: 250-8BITMIME
Out: 250-DSN
Out: 250 SMTPUTF8
In:  STARTTLS
Out: 454 4.7.0 TLS not available due to local problem
In:  RSET
Out: 530 5.7.0 Must issue a STARTTLS command first
In:  QUIT
Out: 221 2.0.0 Bye

For other details, see the local mail logfile

Finally my relevant maillog is:

Sep  6 00:28:58 webserver postfix/submission/smtpd[29362]: warning: cannot get RSA private key from file «/etc/letsencrypt/live/bio-olives.com.com/privkey.pem»: disabling TLS support
Sep  6 00:28:58 webserver postfix/submission/smtpd[29362]: warning: TLS library problem: error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:290:fopen(‘/etc/l     etsencrypt/live/bio-olives.com.com/privkey.pem’,’r’):
Sep  6 00:28:58 webserver postfix/submission/smtpd[29362]: warning: TLS library problem: error:20074002:BIO routines:file_ctrl:system lib:../crypto/bio/bss_file.c:292:
Sep  6 00:28:58 webserver postfix/submission/smtpd[29362]: warning: TLS library problem: error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib:../ssl/ssl_rsa.c:540:
Sep  6 00:28:58 webserver postfix/submission/smtpd[29362]: connect from localhost[127.0.0.1]
Sep  6 00:28:58 webserver roundcube: ERROR: Invalid response code received from server (454)
Sep  6 00:28:58 webserver roundcube: ERROR: Invalid response code received from server (530)
Sep  6 00:28:58 webserver postfix/cleanup[29364]: 46Pb2L127Kz20Tk: message-id=<46Pb2L127Kz20Tk@webserver.bio-olives.com>
Sep  6 00:28:58 webserver postfix/qmgr[29183]: 46Pb2L127Kz20Tk: from=<double-bounce@webserver.bio-olives.com>, size=938, nrcpt=1 (queue active)
Sep  6 00:28:58 webserver postfix/submission/smtpd[29362]: disconnect from localhost[127.0.0.1] ehlo=1 starttls=0/1 rset=0/1 quit=1 commands=2/4
Sep  6 00:28:58 webserver roundcube: <t6ctp3k2> SMTP Error: Authentication failure: Invalid response code received from server (Code: 454) in /opt/www/roundcubemail-1.3.8/program/lib/Roundcube/     rcube.php on line 1667 (POST /mail/?_task=mail&_unlock=loading1567722537184&_lang=en_US&_framed=1&_action=send)
Sep  6 00:28:58 webserver postfix/cleanup[29364]: 46Pb2L1W6Hz20Tm: message-id=<46Pb2L127Kz20Tk@webserver.bio-olives.com>
Sep  6 00:28:58 webserver postfix/qmgr[29183]: 46Pb2L1W6Hz20Tm: from=<double-bounce@webserver.bio-olives.com>, size=1099, nrcpt=1 (queue active)
Sep  6 00:28:58 webserver postfix/local[29368]: 46Pb2L127Kz20Tk: to=<postmaster@webserver.bio-olives.com>, orig_to=<postmaster>, relay=local, delay=0.08, delays=0.03/0.03/0/0.02, dsn=2.0.0, sta     tus=sent (forwarded as 46Pb2L1W6Hz20Tm)
Sep  6 00:28:58 webserver postfix/qmgr[29183]: 46Pb2L127Kz20Tk: removed
Sep  6 00:28:58 webserver postfix/pipe[29370]: 46Pb2L1W6Hz20Tm: to=<postmaster@bio-olives.com>, orig_to=<postmaster>, relay=dovecot, delay=0.05, delays=0/0.02/0/0.03, dsn=2.0.0, status=sent (de     livered via dovecot service (doveconf: Warning: SSLv2 not supported by OpenSSL. Please consider removing it from ssl_protocols.))
Sep  6 00:28:58 webserver postfix/qmgr[29183]: 46Pb2L1W6Hz20Tm: removed

—-

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.

2 Reply by ZhangHuangbin 2019-09-06 10:46:42

  • ZhangHuangbin
  • ZhangHuangbin
  • iRedMail Developers
  • Offline
  • Registered: 2009-05-06
  • Posts: 30,080

Re: SMTP Error (454): Authentication failed.

romfeo wrote:

Sep  6 00:28:58 webserver postfix/submission/smtpd[29362]: warning: cannot get RSA private key from file «/etc/letsencrypt/live/bio-olives.com.com/privkey.pem»: disabling TLS support

See this? Postfix can not read the private key file.

Make sure Postfix daemon user can access /etc/letsencrypt/live/ and /etc/letsencrypt/archive/:

chmod +r /etc/letsencrypt/{live,archive}
service postfix restart

Pages 1

You must login or register to post a reply

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Smtp yandex error authentication failed this user does not have access rights to this service
  • Smtp sendmail error
  • Smtp send error the operation has timed out
  • Smtp protocol synchronization error next input sent too soon pipelining was not advertised
  • Smtp protocol error 530

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии