Exchange Hybrid Certificate Requirement (accepted domain on certificate)

Mike00 236 Reputation points
2020-08-12T05:31:44.023+00:00

Hi,

I am configuring an exchange Hybrid environment and noted that the certificate for TLS requires that an accepted domain within Exchange Online needs to be on the certificate used to secure mail transport (subject or subject alternative name).

I am wondering if there is any way around this requirement? The business does not want their root domain on the SSL certificate as they are concerned about the security aspect. What will not work without this root domain on the cert, assuming the SSL certificate has no domains on it that match an accepted domain in Exchange Online.

Mike.

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,358 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.
1,896 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Andy David - MVP 142.3K Reputation points MVP
    2020-08-12T11:04:46.267+00:00

    Hi @Mike00
    If the certificate does not have an accepted domain as a subject or in the CN, it will be rejected:

    https://learn.microsoft.com/en-us/exchange/troubleshoot/connectors/office-365-notice

    Beginning July 5, 2017, Office 365 no longer supports relaying email messages if a hybrid environment customer has not configured their environment for either of the step 3 conditions. Such messages are rejected and trigger the following error message:

    550 5.7.64 Relay Access Denied ATTR36. For more details please refer to KB 3169958.

    Additionally, you must meet the second condition ("certificate-based connector configuration") in step 3 in the "Introduction" section if your organization requires that any of the following scenarios continue to work after July 5, 2017.

    1 person found this answer helpful.
    0 comments No comments

  2. Andy David - MVP 142.3K Reputation points MVP
    2020-08-14T21:50:55.22+00:00

    Hi @Mike00 ,
    Its all about that attribution - and here I am referring to SMTP exclusively. Somewhere in that cert has to be a subject name or CN that matches up with an accepted domain in 365.

    It doesn't have to contain all the domains in teh cert subject names, just at least one it can match up. So if you have 3 domains, domaina.com, domainb.com, domainc.com and you have a subject of domainc.com in the cert, you can send from domaina and domainb through the same SMTP connector even though those domain subject names are not on the cert, because 365 can match domainc.com to an accepted domain, see its and that the others are registered to your tenant as well.

    More on that:
    https://techcommunity.microsoft.com/t5/exchange-team-blog/office-365-message-attribution/ba-p/749143

    1 person found this answer helpful.
    0 comments No comments

  3. Jon Alfred Smith 541 Reputation points
    2020-08-12T11:19:00.06+00:00

    The subject in the certificate with a wildcard will usually be *.domain.com or with a SAN (UC) mail.domain.com and autodiscover.com. Is this considered to be their root domain?


  4. Mike00 236 Reputation points
    2020-08-13T01:00:46.747+00:00

    Hi AD-7937,

    Thanks for the reply. I understand now that i need a domain that is verified in O365 on the certificate. What I am confused about is if this domain needs to the Subject Name (can it be SAN instead?) and does it need to be the primary or default SMTP domain in Exchange Online?

    I see some contradictory statements in the Hybrid Certificate Requirements link (https://learn.microsoft.com/en-us/exchange/certificate-requirements) from Microsoft stating:

    "The subject name is the FQDN that the certificate is issued to and should use the primary SMTP domain that is shared between the on-premises and Exchange Online organizations."

    The link you provided states:

    "Your on-premises email server is configured to use a certificate to send email to Office 365, and the Common-Name (CN) or Subject Alternate Name (SAN ) in the certificate contains a domain name that you have registered in Office 365, and you have created a certificate-based connector in Office 365 that has that domain."

    Unsure which of these statements is correct?

    Mike.

    0 comments No comments

  5. Joyce Shen - MSFT 16,646 Reputation points
    2020-08-13T05:08:31.59+00:00

    You do not need to change the domain to default SMTP domain, and you just need to add the domain to SAN.