not authorized to relay messages through the Office 365 email servers - Microsoft Q&A

  • 23,000
  • Tác giả: admin
  • Ngày đăng:
  • Lượt xem: 23
  • Tình trạng: Còn hàng

Share via

2022-10-12T18:50:38.13+00:00

We have a 3rd tiệc nhỏ ứng dụng that needs to lớn send an tin nhắn using smtp but we get the error "not authorized to lớn relay messages through the Office 365 tin nhắn servers" with Status code: 550 5.7.64

This sort of points us to lớn look at connectors, there is already one in the but we are un able to lớn edit and there is no option to lớn create new connectors !!.

if we try and edit the current one it says "you tự not have permission to lớn edit this information" . I have a full admin tài khoản with access to lớn everything, also our 365 license providers who are also admins get the same problem.

  1. 2022-10-27T09:57:50.913+00:00

    Hi @Paul Wells ,

    To fix this issue i had to lớn tự the following

    Great to lớn know that you've already thought of a solution and really appreciate it for your sharing!
    By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others.". and according to lớn the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:
    [not authorized to lớn relay messages through the Office 365 tin nhắn servers]
    Issue Symptom:
    We have a 3rd tiệc nhỏ ứng dụng that needs to lớn send an tin nhắn using smtp but we get the error "not authorized to lớn relay messages through the Office 365 tin nhắn servers" with Status code: 550 5.7.64
    This sort of points us to lớn look at connectors, there is already one in the but we are un able to lớn edit and there is no option to lớn create new connectors !!.
    if we try and edit the current one it says "you tự not have permission to lớn edit this information" . I have a full admin tài khoản with access to lớn everything, also our 365 license providers who are also admins get the same problem.

    The Cause:
    The administrator tài khoản loss "Remote and Accepted Domains" role to lớn has no permissions
    The loss of "Remote and Accepted Domains" role for the administrator tài khoản leaves the administrator tài khoản without permissions to lớn create connectors.
    Then run rẩy this

    New-ManagementRoleAssignment -Role "Remote and Accepted Domains" -SecurityGroup "Organization Management"  
    

    You could click the "Accept Answer" button for this summary to lớn close this thread, and this can make it easier for other community member's to lớn see the useful information when reading this thread. Thanks!

9 additional answers

  1. 2022-10-13T06:47:00.437+00:00

    Hi @Paul Wells ,
    I checked the connector in my environment, and it doesn't seem to lớn have modified the UI layout.
    249870-2022-10-13.png
    Did you try creating the connector using PowerShell?
    Please refer to lớn the following command to lớn create the connector to lớn see if it works:

    New-InboundConnector -Name "SMTP Relay POSH" -ConnectorType 'OnPremises' -SenderDomains * -SenderIPAddresses 10.11.12.13 -RestrictDomainsToIPAddresses $true  
    

    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 lớn enable e-mail notifications if you want to lớn receive the related tin nhắn notification for this thread.

  2. 2022-10-13T06:57:47.083+00:00

    Hi, yes we have also tried various things in powershell and that hasn't worked either.

    249982-capture.png

  3. 2022-10-13T07:41:26.33+00:00

    yes we created a new test tài khoản with full admin roles and that was still the same.

  4. 2022-10-13T09:02:46.727+00:00

    Hi @Paul Wells ,

    We have tried all basic troubleshooting that we can tự. In my opinion, this issue may be caused by the tenant backend. I would suggest that you need open a ticket to lớn resolve it.
    Thank you for your patient reply and understanding!
    The following is how to lớn liên hệ M365 tư vấn in the admin portal:
    250061-2022-10-13-2.png


    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 lớn enable e-mail notifications if you want to lớn receive the related tin nhắn notification for this thread.

Sign in to lớn answer

Your answer

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