{"id":195,"date":"2019-02-05T21:42:04","date_gmt":"2019-02-06T02:42:04","guid":{"rendered":"http:\/\/itblog.ldlnet.net\/?p=195"},"modified":"2019-02-05T21:42:04","modified_gmt":"2019-02-06T02:42:04","slug":"event-11022-with-msexchangetransport-easy-validation-test","status":"publish","type":"post","link":"https:\/\/itblog.ldlnet.net\/index.php\/2019\/02\/05\/event-11022-with-msexchangetransport-easy-validation-test\/","title":{"rendered":"Event 11022 with MSExchangeTransport &#8211; Easy Validation Test"},"content":{"rendered":"\n<p>In a hybrid environment, you&#8217;re always connecting between the cloud and on premises to establish transport through the connectors to transport mail. By default, this is done over a TLS (Transport Layer Security) connection. It&#8217;s similar to a VPN or SSL connection using certificates on the Transport Layer of the network stack to encrypt the data between the two Organizations in a Hybrid configuration. <\/p>\n\n\n\n<p>Because you are using certificates, the certificate must be validated properly and checked to see if it has expired or been revoked by the issuing company. A revocation list is created and updated regularly for this purpose. If the connecting organization cannot validate the revocation of the certificate, it will not establish a TLS connection with the connecting organization. You will then get the following event:<\/p>\n\n\n\n<p class=\"has-text-color has-small-font-size has-medium-pink-color\">Event 11022<br>MSExchangeTransport<br>Error:<br>Failed to confirm domain capabilities &#8216;mail.protection.outlook.com:AcceptOorgProtocol&#8217; on connector &#8216;Inbound from Office 365&#8217; because validation of the Transport Layer Security (TLS) certificate failed with status &#8216;RevocationOffline&#8217;. Contact the administrator of &#8216;mail.protection.outlook.com&#8217; to resolve the problem, or remove the domain from the TlsDomainCapabilities list of the Receive connector.<\/p>\n\n\n\n<p>Most likely, there is a network issue with the On Premises Organization being able to retrieve the Revocation File with the Certificate Information. Since it cannot retrieve that file, it stops the transport connection and throws the error.<\/p>\n\n\n\n<p>A simple validation to validate the connector and assure transport from Office365 is to run the following cmdlet from the server on premises that performs the connection:<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\">write-host;hostname;date;write-host;Test-SmtpConnectivity | ft -a -wr | Out-String -Stream<\/pre>\n\n\n\n<p style=\"text-align:center\" class=\"has-small-font-size\"><em>Again,\u00a0I\u00a0like\u00a0to\u00a0put\u00a0the\u00a0other\u00a0cmdlets\u00a0of\u00a0<\/em><br><em><strong>write-host,\u00a0hostname,\u00a0and\u00a0date\u00a0<\/strong><\/em><br><em>in\u00a0order\u00a0to\u00a0make\u00a0it\u00a0easy\u00a0to\u00a0document\u00a0when\u00a0working\u00a0an\u00a0incident.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"347\" src=\"http:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/02\/Test-SMTPConnectivity-Output.png\" alt=\"\" class=\"wp-image-196\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/02\/Test-SMTPConnectivity-Output.png 922w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/02\/Test-SMTPConnectivity-Output-300x113.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/02\/Test-SMTPConnectivity-Output-768x289.png 768w\" sizes=\"auto, (max-width: 922px) 100vw, 922px\" \/><figcaption>From the highlighted text, we can see the test was successful.<\/figcaption><\/figure>\n\n\n\n<p>The test runs a connection for each connector and tests the validity of each connector. If a success is returned, then we have knowledge that the certificate was validated and the connection was established through the connector from Office365.<\/p>\n\n\n\n<p>If you get a failure though, you will need to run tests to see if you can pull the revocation list for the certificate as well as a simple test to connect to Office365:<\/p>\n\n\n\n<p class=\"has-small-font-size\"><em><a rel=\"noreferrer noopener\" aria-label=\"Connect to Exchange Online via Powershell (opens in a new tab)\" href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/exchange\/exchange-online\/connect-to-exchange-online-powershell\/connect-to-exchange-online-powershell?view=exchange-ps\" target=\"_blank\">Connect to Exchange Online via Powershell<\/a><\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"text-align:center\"><strong>IMPORTANT NOTE<\/strong><\/h2>\n\n\n\n<p>I wanted to put some information on how to pull the CRL Distribution Point for the Office365 so that you could run an Invoke-WebRequest to pull the CRL file from the Distribution Point, but I have NOT found a single way through Powershell to pull that information. I have searched multiple posts and articles showing all these advanced methods of using certutil and PowerShell to get a bunch of other information, but NOTHING on how to pull the URL for the CRL file from the certificate. Doing a Get-ChildItem for the certificate using the Thumbprint does NOT pull that property from the certificate. Now, if you have a cmdlet that WILL do that, PLEASE POST!<\/p>\n\n\n\n<p>So, in essence, to troubleshoot if you can get to the CRL file, you get the URL for the CRL Distribution Point from the GUI Properties of the certificate. Then you run the following cmdlet in PowerShell:<\/p>\n\n\n<pre class=\"lang:PowerShell nums:false\" title=\"Get the CRL File\">Let's say the CRL file is at the following URL: http:\/\/crl.comodoca.com\/COMODORSAOrganizationValidationSecureServerCA.crl \n\nRun the following:\nInvoke-WebRequest http:\/\/crl.comodoca.com\/COMODORSAOrganizationValidationSecureServerCA.crl -UseDefaultCredentials | Select * -ExpandProperty Headers | ft -a -wr\n\nIf you get a valid response from the output, then you're good!<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"text-align:center\">POST COMMENTS! <br>HAPPY TROUBLESHOOTING!<\/h2>\n","protected":false},"excerpt":{"rendered":"<p>In a hybrid environment, you&#8217;re always connecting between the cloud and on premises to establish transport through the connectors to transport mail.<\/p>\n<p class=\"link-more\"><a class=\"myButt \" href=\"https:\/\/itblog.ldlnet.net\/index.php\/2019\/02\/05\/event-11022-with-msexchangetransport-easy-validation-test\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":161,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2,3,16],"tags":[28,27,87,84,9,88,77,8,85,86],"class_list":["post-195","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-exchange","category-general","category-powershell","category-windows","tag-certificate","tag-certificates","tag-connector","tag-crl","tag-exchange","tag-o365","tag-office365","tag-powershell","tag-revocation","tag-smtp","odd"],"_links":{"self":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/comments?post=195"}],"version-history":[{"count":3,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/195\/revisions"}],"predecessor-version":[{"id":199,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/195\/revisions\/199"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/media\/161"}],"wp:attachment":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/media?parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/categories?post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/tags?post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}