Summary: When sending a test email, you may get the following error:
Copy
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [AM0PR06CA0080.eurprd06.prod.outlook.com]This article contains step-by-step instructions on how to resolve this issue.
Applies to: Cayosoft Administrator 7.3.0 or later
Resolution
- Check that the account that is used in the Cayosoft Administrator console under Configuration > Settings > Email Settings (SMTP) has an Exchange Online license.
- Check that the account password is set correctly.
- Check that you can send and receive an email through Outlook.
-
Run the PowerShell script below to test if the issue is related to your environment or if this is a Cayosoft Administrator Service issue. When prompted, specify Microsoft 365 Administrator credentials:
Copy$cred = get-credential Send-MailMessage –From <administrator@yourdomain.com> –To <administrator@yourdomain.com> –Subject “Test Email” –Body “Test Text” -SmtpServer smtp.office365.com -Credential $cred -UseSsl -Port 587 -
If you still get the error "
The SMTP server requires a secure connection or the client was not authenticated" run the script below to enable authenticated SMTP for the Microsoft 365 administrator mailbox:CopySet-CASMailbox <administrator@yourdomain.com> -SmtpClientAuthenticationDisabled $false - Wait for about an hour.
- Check that now test emails can be sent.
Comments
0 comments
Please sign in to leave a comment.