SMTP Error 530 Authentication Required is an error user gets while sending emails.
This error occurs when users configure invalid login details, sender IP gets blacklisted, and so on.
At Bobcares, we often get requests to fix SMTP errors as a part of our Server Management Services.
Today, let’s see how our Support Engineers fix this authentication error.
SMTP error 530
SMTP is responsible for sending emails. If an email is not sent, it gives error messages with codes. This helps in easy troubleshooting.
An SMTP error code is of a 3 digit format, with each digit has a specific meaning. One such error that shows up while sending an email is ‘SMTP error 530’.
Usually, this is an authentication problem. The basic reasons for this are invalid login details, blacklisted sender IP and so on.
Let’s discuss how our Support Engineers fix this error for our customers.
How we fix the SMTP error 530?
SMTP errors have clearly defined error codes. But, finding the reasons for some errors are tricky. Our Dedicated Engineers, with expertise over a decade in Email services, are skilful in fixing such SMTP errors for our customers.
Now, let’s see the possible causes and fixes for the authentication error.
1. Authenticate the email client
The most obvious reason for SMTP error 530 is not authenticating the Email client properly. This usually happens when the user is unaware of the setting of a new Email client.
For instance, email client authentication in Microsoft Outlook is as follows:
- First select File>> Account Settings.
- Click the Email tab and select the email address.
- Next, click on the More Settings.
- Now, Internet E-mail Settings appear.
- Click on the tab Outgoing Server and enter the details.
- Finally, click the checkbox ‘My outgoing server (SMTP) requires authentication’.
Our Support Engineers provide a detailed guide about authentication for each Email client.
2. Invalid Login credentials
Similarly, invalid or incorrect login details result in this SMTP error. Some customers enter invalid email address and email clients show error 530.
In such situations, our Support Engineers ask the customers to double-check login credentials. We handhold the customers to configure their mail clients without errors.
We also make sure that the recipient’s email address is valid.
3. Blacklisted Sender IP
Another reason that can cause SMTP error is blacklisting of IP by recipient server. The sender IP address may have got blacklisted somehow. If the sender uses this server to send mails, then it shows error 530.
In this case, we check if the recipient server has blocked the sender IP. So, we request them to unban or whitelist it.
4. ISP blocking port
The default SMTP port is 25. But if the customer’s ISP blocks access to this SMTP port, error 530 can occur. This is usually done as a measure to avoid spamming.
A workaround we do is to configure SMTP to use alternate port and enable this port in the mail client settings to send mail via Outlook, Thunderbird etc.
[Still having trouble in fixing SMTP errors? – We’ll fix it.]
Conclusion
In short, SMTP Error 530 is an authentication error. Usually, this error indicates an unauthenticated email client. Other reasons for this error are blacklisting of sender IP or invalid email address. Today, we saw how our Support Engineers fix this error 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. |
| 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. (Синтаксическая ошибка.) |
Эта информация оказалась полезной?
Как можно улучшить эту статью?
I’ve been trying to send e-mail from the following PHP script running on my localhost, with G-mail as my SMTP relay host.
<?php
// The message
$message = "Line 1rnLine 2rnLine 3";
$message = wordwrap($message, 70, "rn");
$headers = 'From: <my-email>@gmail.com' . "rn" .
'Reply-To: <my-email>@gmail.com' . "rn" .
'X-Mailer: PHP/' . phpversion();
// Send Mail
if (true==mail('<other email>@gmail.com', 'My Subject', $message, $headers, '-f<other email>@gmail.com'))
{
echo "E-mail successfully sent.";
}
else
{
echo "E-mail failed.";
}
?>
Although the mail function returns ‘TRUE’, no e-mail actually gets delivered, and I keep getting the following error when I look at the mail log:
Also, in looking at the mail.log file, the following errors were recorded:
Aug 17 22:00:03 unknownf81edfd84850 postfix/smtp[1714]: maps_find: smtp_sasl_passwd: smtp.gmail.com: not found
Aug 17 22:00:03 unknownf81edfd84850 postfix/smtp[1714]: maps_find: smtp_sasl_passwd: smtp.gmail.com:587: not found
Aug 17 22:00:03 unknownf81edfd84850 postfix/smtp[1714]: smtp_sasl_passwd_lookup: no auth info found (sender=`rrodriguez6@unknownf81edfd84850.att.net', host=`smtp.gmail.com')
Aug 17 22:00:03 unknownf81edfd84850 postfix/smtp[1714]: > smtp.gmail.com[173.194.219.108]:587: MAIL FROM:<rrodriguez6@unknownf81edfd84850.att.net> SIZE=389
Aug 17 22:00:03 unknownf81edfd84850 postfix/smtp[1714]: > smtp.gmail.com[173.194.219.108]:587: RCPT TO:<rlrodriguez.rivera@gmail.com>
Aug 17 22:00:03 unknownf81edfd84850 postfix/smtp[1714]: > smtp.gmail.com[173.194.219.108]:587: DATA
Aug 17 22:00:03 unknownf81edfd84850 postfix/smtp[1714]: vstream_fflush_some: fd 15 flush 108
Aug 17 22:00:03 unknownf81edfd84850 postfix/smtp[1714]: vstream_buf_get_ready: fd 15 got 133
Aug 17 22:00:03 unknownf81edfd84850 postfix/smtp[1714]: < smtp.gmail.com[173.194.219.108]:587: 530-5.5.1 Authentication Required. Learn more at
Aug 17 22:00:03 unknownf81edfd84850 postfix/smtp[1714]: < smtp.gmail.com[173.194.219.108]:587: 530 5.5.1 https://support.google.com/mail/answer/14257 j2sm2579221ywj.12 - gsmtp
Aug 17 22:00:03 unknownf81edfd84850 postfix/smtp[1714]: connect to subsystem private/bounce
Is it possible that postfix cannot read my sasl_passwd.db file?
Below is the content of my sasl_passwd file:
smtp.gmail.com:587 <my gmail account>:�<my gmail password>
Also, I have the following settings in my main.cf file:
#Gmail SMTP
relayhost = smtp.gmail.com:587
# Enable SASL authentication in the Postfix SMTP client.
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options=
# Enable Transport Layer Security (TLS), i.e. SSL.
smtp_use_tls=yes
smtp_tls_security_level=encrypt
tls_random_source=dev:/dev/urandom
smtp_tls_CAfile = /etc/postfix/ssl/cacert.pem
debug_peer_list=smtp.gmail.com
debug_peer_level=3
One thing I did notice is that when I run postmap to create the sasl_passwd.db file, I get the following warning:
postmap: warning: sasl_passwd, line 0: expected format: key whitespace value
In this article, we will focus on the Mailer error: The following From address failed: info@abc.com : MAIL not accepted from server, 530,5.7.0 Authentication Required.
This is a common error that occurs while sending email through Gmail Link: https://mail.google.com/ account and while using PHPMailer Class link: https://github.com/PHPMailer/PHPMailer.
Now, let us look at the causes and solutions to this error.
What causes this error?
Let us look at the reasons for this error.
Cause 1: Incorrect SMTP Setting for Email
This error may arise due to incorrect SMTP settings.
Solution
Thus, check your SMTP settings first.
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'info@abc.com'; // SMTP username
$mail->Password = 'password'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 587; // TCP port to connect to
Important: You have to check the SMTP and PORT settings.
$mail->Port = 587; & $mail->SMTPSecure = 'tls';
Doing this might solve the issue.
Cause 2: Less Secure App Accessed is not Enabled
Less secure apps are usually 3rd party applications that send your credentials directly to Gmail. Here, an authorization mechanism such as OAuth isn’t used. If the “Less secure app access” is disabled in Gmail, you’ll face this error.
To avoid this, you need to enable “Less secure app access” in your Gmail account settings.
Steps to enable less secure app
i) Login to your Gmail account
ii) Click on the top right Profile iconand then click on Account

iii) In the Account Window that opens up, click on the Security button on the left navigation column

iv) Scroll down and search for the option “Less secure app access”. If you have previously enabled the “2 Step Verification” option, then the “Less secure app access” will not be available. Therefore, you have to disable the “2 Step Verification” option
v) Now, scroll up to the “Signing in to Google” section. Then, click on the “2-Step Verification”button

vi) A 2-Step Verificationwindow will pop up. Here, click on the “TURN OFF” option to disable this feature

Now, go back to the previous page and you’ll see the “Less secure app access” has appeared.
vii) You can enable the “Less secure app access” option now. For this, click on “Turn on access (not recommended)”

viii) This will take you to a page called Less secure app access. Here, click on the toggle button beside “Allow less secure apps access” asshown in the image. This will enable less secure applications.
Or, click on the link given below and turn off the toggle button –
https://myaccount.google.com/u/1/lesssecureapps

Conclusion
If you have followed the steps mentioned above, you can easily send and receive emails on your Gmail account. In case you are still facing the Mailer error: The following From address failed: info@abc.com : MAIL not accepted from server,530,5.7.0 Authentication Required error, then feel free to write about it in the comment section below.
Hi All,
While sending the message to the certain domain, I am getting the error message as below, I have pasted the entire header, Please help me out on this. «The following organization rejected your message: mail.zehndev.com. «
Vijay Singh
(vijay.singh@edgenmurray.com )
An error occurred while trying to deliver this message to the recipient’s e-mail address. Microsoft Exchange will not try to redeliver this message for you. Please try resending this message, or provide the following diagnostic text to your system administrator.
The following organization rejected your message: mail.zehndev.com.
_____
Sent by Microsoft Exchange Server 2007
Diagnostic information for administrators:
Generating server: HMEL-NDA-EDGE01.HMEL.INT
joan.cordeiro@edgenmurray.com
mail.zehndev.com #530 SMTP authentication is required. ##
leena.bakshi@edgenmurray.com
mail.zehndev.com #530 SMTP authentication is required. ##
naveed.ahmed@edgenmurray.com
mail.zehndev.com #530 SMTP authentication is required. ##
teena.belani@edgenmurray.com
mail.zehndev.com #530 SMTP authentication is required. ##
vijay.singh@edgenmurray.com
mail.zehndev.com #530 SMTP authentication is required. ##
Original message headers:
Received: from HMEL-NDA-HTC01.hmel.int (10.60.0.148) by
HMEL-NDA-EDGE01.HMEL.INT (192.168.13.51) with Microsoft SMTP Server (TLS) id
8.1.393.1; Mon, 28 Dec 2009 11:05:34 +0530
Received: from HMEL-NDA-VMBX01.hmel.int ([169.254.1.195]) by
HMEL-NDA-HTC01.hmel.int ([10.60.0.148]) with mapi; Mon, 28 Dec 2009 11:03:47
+0530
Thanks,
That is slightly odd. I recommend turning up debug output as more authentication details are shown at
SMTPDebug = 4.One minor thing — don’t set
$this->mail->Mailer = 'smtp';yourself; you’re already calling$this->mail->isSMTP();which does that for you.I recommend you avoid
$this->mail->SingleTo = true;; it’s deprecated, and you should be sending messages individually yourself.
**I tried everything, but it still failed. Do you have any way to help me?
My file config Mailer
<?php
namespace AppClasses;
use PHPMailerPHPMailerPHPMailer;
class Mail
{
protected $mail;
public function __construct()
{
$this->mail = new PHPMailer;
$this->setUp();
}
public function setUp()
{
$this->mail->isSMTP();
$this->SMTPAuth = true;
$this->mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
$this->mail->Host = 'smtp.gmail.com';
$this->mail->Port = 587;
$environment = getenv('APP_ENV');
if($environment === 'local'){$this->mail->SMTPDebug = 4;}
//auth info
$this->mail->Username = 'cokhimoitruongtinphat@gmail.com';
$this->mail->Password = 'xxxx';
$this->mail->isHTML(true); // Set email format to HTML
// $this->mail->SingleTo = true; // set multiple user
// send info
$this->mail->setFrom('cokhimoitruongtinphat@gmail.com', 'Mailer');
}
public function send($data)
{
$this->mail->addAddress($data['to'], $data['name']);
$this->mail->Subject = $data['subject'];
$this->mail->Body = make($data['view'], array('data' => $data['body']));
return $this->mail->send();
}
}
File Report Error
2020-07-04 08:17:06 Connection: opening to smtp.gmail.com:587, timeout=300, options=array()
2020-07-04 08:17:06 Connection: opened
2020-07-04 08:17:06 SMTP INBOUND: "220 smtp.gmail.com ESMTP u14sm14743789pfk.211 - gsmtp"
2020-07-04 08:17:06 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP u14sm14743789pfk.211 - gsmtp
2020-07-04 08:17:06 CLIENT -> SERVER: EHLO acme.local
2020-07-04 08:17:06 SMTP INBOUND: "250-smtp.gmail.com at your service, [2402:800:6318:62c2:423:6272:60cf:98f9]"
2020-07-04 08:17:06 SMTP INBOUND: "250-SIZE 35882577"
2020-07-04 08:17:06 SMTP INBOUND: "250-8BITMIME"
2020-07-04 08:17:06 SMTP INBOUND: "250-STARTTLS"
2020-07-04 08:17:06 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2020-07-04 08:17:06 SMTP INBOUND: "250-PIPELINING"
2020-07-04 08:17:06 SMTP INBOUND: "250-CHUNKING"
2020-07-04 08:17:06 SMTP INBOUND: "250 SMTPUTF8"
2020-07-04 08:17:06 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2402:800:6318:62c2:423:6272:60cf:98f9]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
2020-07-04 08:17:06 CLIENT -> SERVER: STARTTLS
2020-07-04 08:17:06 SMTP INBOUND: "220 2.0.0 Ready to start TLS"
2020-07-04 08:17:06 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2020-07-04 08:17:06 CLIENT -> SERVER: EHLO acme.local
2020-07-04 08:17:07 SMTP INBOUND: "250-smtp.gmail.com at your service, [2402:800:6318:62c2:423:6272:60cf:98f9]"
2020-07-04 08:17:07 SMTP INBOUND: "250-SIZE 35882577"
2020-07-04 08:17:07 SMTP INBOUND: "250-8BITMIME"
2020-07-04 08:17:07 SMTP INBOUND: "250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"
2020-07-04 08:17:07 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2020-07-04 08:17:07 SMTP INBOUND: "250-PIPELINING"
2020-07-04 08:17:07 SMTP INBOUND: "250-CHUNKING"
2020-07-04 08:17:07 SMTP INBOUND: "250 SMTPUTF8"
2020-07-04 08:17:07 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2402:800:6318:62c2:423:6272:60cf:98f9]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
2020-07-04 08:17:07 CLIENT -> SERVER: MAIL FROM:<cokhimoitruongtinphat@gmail.com>
2020-07-04 08:17:07 SMTP INBOUND: "530-5.7.0 Authentication Required. Learn more at"
2020-07-04 08:17:07 SMTP INBOUND: "530 5.7.0 https://support.google.com/mail/?p=WantAuthError u14sm14743789pfk.211 - gsmtp"
2020-07-04 08:17:07 SERVER -> CLIENT: 530-5.7.0 Authentication Required. Learn more at530 5.7.0 https://support.google.com/mail/?p=WantAuthError u14sm14743789pfk.211 - gsmtp
2020-07-04 08:17:07 SMTP ERROR: MAIL FROM command failed: 530-5.7.0 Authentication Required. Learn more at530 5.7.0 https://support.google.com/mail/?p=WantAuthError u14sm14743789pfk.211 - gsmtp
The following From address failed: cokhimoitruongtinphat@gmail.com : MAIL FROM command failed,Authentication Required. Learn more at https://support.google.com/mail/?p=WantAuthError u14sm14743789pfk.211 - gsmtp,530,5.7.0SMTP server error: MAIL FROM command failed Detail: Authentication Required. Learn more at https://support.google.com/mail/?p=WantAuthError u14sm14743789pfk.211 - gsmtp SMTP code: 530 Additional SMTP info: 5.7.0
Email send failed2020-07-04 08:17:07 CLIENT -> SERVER: QUIT
2020-07-04 08:17:07 SMTP INBOUND: "221 2.0.0 closing connection u14sm14743789pfk.211 - gsmtp"
2020-07-04 08:17:07 SERVER -> CLIENT: 221 2.0.0 closing connection u14sm14743789pfk.211 - gsmtp
2020-07-04 08:17:07 Connection: closed
Why do I get the error 530 SMTP authentication is required” when I try to send an e-mail?”
This article applies to Dedicated Servers.
This article explains how to correct the error message 530 SMTP authentication is required when attempting to send an e-mail through an e-mail client like Outlook Express or Mozilla Thunderbird.
In order to send e-mail securely through our mail servers, the SMTP authentication option needs to be enabled within your e-mail client software.
The exact method for doing this differs depending on the software used. Instructions for configuring SMTP authentication in Outlook Express are below:
Step 1 of 4
Click the Tools menu at the top of the window and then click Accounts.
Step 2 of 4
Click the Mail tab on the resulting Internet Accounts Window, and select your Donhost e-mail account.
Step 3 of 4
Click Properties to open the Properties dialogue box for your e-mail account.
Step 4 of 4
Under the Outgoing Mail Server heading, check the My Server requires authentication box and click OK.