Client does not have permissions to send as this sender

Glenn Maxwell 11,136 Reputation points
2024-09-05T19:17:19.45+00:00

Hi All,

I am using an Exchange 2016 Hybrid environment with an internal relay. When I test using the syntax below, I receive the following error. For authentication, I am using a service account that is created as a remote mailbox on-premises and synced to Azure AD, which also has an Exchange Online Plan 1 license.

smb@contoso.com is a shared mailbox created as a remote shared mailbox.

onlinedl1@contoso.com is an Exchange Online distribution list.

I have assigned both the service account and the shared mailbox Send As permissions on the distribution list.

Send-MailMessage -SmtpServer mysmtp.contoso.com -Credential $credential -From 'smb@contoso.com' -To 'onlinedl1@contoso.com' -Subject 'Test' -Port 587 -UseSsl  

Send-MailMessage : Mailbox unavailable. The server response was: 5.7.60 SMTP; Client does not have permissions to send as this sender

Microsoft Exchange Online
Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,267 questions
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,492 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,606 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,076 questions
0 comments No comments
{count} votes

Accepted answer
  1. Alex Zhang-MSFT 390 Reputation points Microsoft Vendor
    2024-09-06T06:42:06.3566667+00:00

    Hello, @Glenn Maxwell,

    Welcome to the Microsoft Q&A platform!

    Based on your description, I understand that you got the error message “Mailbox unavailable. The server response was: 5.7.60 SMTP; Client does not have permissions to send as this sender.”  when using PowerShell for syntax testing.

    According to the error message, it’s indicate that the application is trying to send an email from an address that doesn’t match the logon credentials. For example, if your entered login credentials for User0@contoso.com in your application settings but the application tries to send emails from User1@contoso.com. If your application behaves this way, please use Office 365 SMTP relay because SMTP client submission does not support this scenario. 

    It is advisable for you to configure Office 365 SMTP relay If your application does need to send email from a different address. For more, please refer to this document: How to set up a multifunction device or application to send emails using Microsoft 365 or Office 365 | Microsoft Learn.

    Please click "Accept Answer" and kindly upvote it if the answer is helpful. If you have extra questions about this answer, please click "Comment".

    Thank you for your support and understanding.

    Best Wishes,

    Alex Zhang


1 additional answer

Sort by: Most helpful
  1. Glenn Maxwell 11,136 Reputation points
    2024-09-16T05:40:08.38+00:00

    unable to mark as answer


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.