{"id":8886,"date":"2025-05-18T04:07:29","date_gmt":"2025-05-18T04:07:29","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=8886"},"modified":"2025-07-04T00:52:54","modified_gmt":"2025-07-04T00:52:54","slug":"hve-accounts-5-7-57-client-not-authenticated-to-send-mail-error-535-5-7-139-authentication-unsuccessful","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/hve-accounts-5-7-57-client-not-authenticated-to-send-mail-error-535-5-7-139-authentication-unsuccessful","title":{"rendered":"HVE Accounts &#8211; 5.7.57 Client not authenticated to send mail. Error: 535 5.7.139 Authentication unsuccessful"},"content":{"rendered":"\n<p>Trying to Send SMTP via an HVE account comes up with the following error : <\/p>\n\n\n\n<p>Send-MailMessage : The SMTP server requires a secure connection or the client was not<br>authenticated. The server response was: 5.7.57 Client not authenticated to send mail. Error: 535<br>5.7.139 Authentication unsuccessful. Contact your administrator.<br>At C:\\Scripts\\SMTP.ps1:10 char:1<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Send-MailMessage -From UmbracoHVE@pa.com.au -To paris.wells@pa.com.au \u2026<\/li>\n\n\n\n<li><del>~<\/del><del>~<\/del><del>~<\/del><del>~<\/del><del>~<\/del><del>~<\/del><del>~<\/del><del>~<\/del><del>~<\/del><del>~<\/del><del>~<\/del><del>~<\/del><del>~<\/del>~~~~\n<ul class=\"wp-block-list\">\n<li>CategoryInfo : InvalidOperation: (System.Net.Mail.SmtpClient:SmtpClient) [Send-Mai<br>lMessage], SmtpException<\/li>\n\n\n\n<li>FullyQualifiedErrorId : SmtpException,Microsoft.PowerShell.Commands.SendMailMessage<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>Make sure you whitelist the account from Any Conditonal Access Policies that block basic Auth or MFA<\/p>\n\n\n\n<p>If your MFA policy allows via Trusted IPs then you are good<\/p>\n\n\n\n<p>Create an Authentication Policy that allows Basic SMTP<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\"> Get-AuthenticationPolicy | Select Identity <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">Get-OrganizationConfig | Select DefaultAuthenticationPolicy <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">New-AuthenticationPolicy BasicAllowSMTP -AllowBasicAuthSmtp<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\"> Set-User -Identity \"HVE@domain.com\" -AuthenticationPolicy \"BasicAllowSMTP\"<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\"> Get-User -Identity \"HVE@domain.com\" | Select AuthenticationPolicy <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Trying to Send SMTP via an HVE account comes up with the following error : Send-MailMessage : The SMTP server requires a secure connection or the client [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8886","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=8886"}],"version-history":[{"count":3,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8886\/revisions"}],"predecessor-version":[{"id":9027,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8886\/revisions\/9027"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=8886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=8886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=8886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}