Relay smtp.office365.com

Skip Hofmann 341 Reputation points
2022-05-12T13:29:07.713+00:00

Hello all

I have a server that is failing to relay through smtp.office365.com on port 587. Below is the error i am receiving . I have verified that the username and password are correct. When i look at the azure sign-in log files it is showing that the account is able to log in successfully for SMTP, however the error below is suggesting that the account is failing to log in. Any help in is greatly appreciated

"The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 Client not authenticated to send mail. Error: 535 5.7.3 Authentication unsuccessful [TYWPR01CA0028.jpnprd01.prod.outlook.com]"

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,174 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,345 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kael Yao-MSFT 37,496 Reputation points Microsoft Vendor
    2022-05-13T05:29:53.38+00:00

    Hi @Skip Hofmann

    Here is a link about the several possible cause of this issue: Error: Authentication unsuccessful
    Please also have a check if the security default is enabled in the tenant.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Vasil Michev 95,181 Reputation points MVP
    2022-05-12T16:19:57.9+00:00

    Is SMTP client submission enabled for the account? Check via:

    Get-CASMailbox mailboxname | select SmtpClientAuthenticationDisabled
    

    and make sure to also check the tenant-wide setting:

    Get-TransportConfig | select SmtpClientAuthenticationDisabled
    
    2 people found this answer helpful.
    0 comments No comments