{"id":7457,"date":"2021-12-13T08:11:14","date_gmt":"2021-12-13T08:11:14","guid":{"rendered":"https:\/\/www.insentragroup.com\/us\/?p=7457"},"modified":"2022-03-30T08:26:18","modified_gmt":"2022-03-30T08:26:18","slug":"active-directory-upgrade-with-exchange-and-mail-flow-issues","status":"publish","type":"post","link":"https:\/\/www.insentragroup.com\/us\/insights\/geek-speak\/modern-workplace\/active-directory-upgrade-with-exchange-and-mail-flow-issues\/","title":{"rendered":"Active Directory Upgrade With Exchange and Mail Flow Issues"},"content":{"rendered":"\n<p>I apologize for the rather wordy title here. That title is intentional so hopefully, the search algorithms will land you on this page in case you\u2019re currently experiencing this issue, besides, who says blog titles always need to be short?<\/p>\n\n\n\n<h3 style=\"padding-bottom: 15px;margin-bottom: 30px;margin-top: 40px;border-bottom: 1px solid #F37237;color: #F37237\"><span>THE PROBLEM<\/span><\/h3>\n\n\n\n<p>Recently I encountered an issue after introducing an Exchange 2019 server into an organization with a single Exchange 2016 server. After installing Exchange 2019, we found the Exchange 2016 server was unable to send emails to Exchange 2019. However, Exchange 2019 could send emails to Exchange 2016.<\/p>\n\n\n\n<p>So, we\u2019ve identified the issue. Mail flow in one direction is not working, and it appears to be an issue with the older Exchange 2016 server.<\/p>\n\n\n\n<h3 style=\"padding-bottom: 15px;margin-bottom: 30px;margin-top: 40px;border-bottom: 1px solid #F37237;color: #F37237\"><span>THE TESTING<\/span><\/h3>\n\n\n\n<p>Messages destined to the Exchange 2019 server were stuck in a message queue called \u201cUnknown\u201d. In this case, no error messages were marked with an error, and the queue wasn\u2019t marked with the name of the destination Exchange 2019 server or Active Directory site.&nbsp; After uncovering the issue, I did a simple mail flow test by connecting to a mailbox hosted on Exchange 2016 and sending a message to a mailbox hosted on Exchange 2019. The message was found in this Unknown queue, and I never received a bounce back message. The mailbox was receiving emails from the Exchange 2019 mailbox, so I know that the servers should be able to communicate with each other.<\/p>\n\n\n\n<p>Another test to run between Exchange servers is the \u201cTest-MailFlow\u201d command. For example:<\/p>\n\n\n\n<p><em>Test-Mailflow Exchange2016Server -TargetMailboxServer Exchange2019Server<\/em><\/p>\n\n\n\n<p>The example above tests mail flow from the Exchange 2016 server to the Exchange 2019 server. In our case, this test also failed.<\/p>\n\n\n\n<p>The enabled internet send connector on Exchange 2016 was sending messages to external recipients, so I know the server was not having mail flow in other scenarios. It can receive mail from Exchange 2019 and from the internet, it can send to other Exchange 2016 mailboxes, and it can send to the internet.<\/p>\n\n\n\n<p>Always start with the simplest step, so step one was to restart the transport agent on the 2016 server. After restarting the service, I waited for a few moments however the Unknown queue was still full of messages destined for Exchange 2019 and nothing was delivered to the server.<\/p>\n\n\n\n<p>In the past, I have found misconfigured custom receive connectors to be the cause. So, for example, if a custom receive connector is set to scope to entire subnets, including the IP address of Exchange servers on the subnet, this could cause Exchange to Exchange mail flow issues. However, all connectors were configured correctly, the Exchange 2019 server\u2019s IP address was not included in the list of approved IP addresses on the custom connectors, and the same was true for Exchange 2019 custom receive connectors and the Exchange 2016 IP address. This means the two servers were using (or attempting to) the default receive connectors to receive email from each other, which is how Exchange is designed to work.<\/p>\n\n\n\n<h3 style=\"padding-bottom: 15px;margin-bottom: 30px;margin-top: 40px;border-bottom: 1px solid #F37237;color: #F37237\"><span>THE SOLUTION<\/span><\/h3>\n\n\n\n<p>After some time, it was brought to my attention that the domain had been upgraded recently. The uptime on the Exchange 2016 server showed it had been running since before the time of the AD upgrade. Legacy domain controllers were removed from the environment prior to the upgrade of the domain.<\/p>\n\n\n\n<p>Finally, we decided to try the old \u201cHave you tried turning it off and on again\u201d trick. The thought being the two major schema changes had occurred recently, the upgrade of the domain, and the extension of Exchange 2019, and sometimes Exchange servers can be prone to hook into older domain controllers. Maybe Exchange 2016 was having a hard time interpreting Exchange 2019 from an email perspective.<\/p>\n\n\n\n<p>We rebooted. We waited. The server came up. Boom! The Unknown message queue was cleared! Emails from Exchange 2016 to Exchange 2019 were delivered!<\/p>\n\n\n\n<h3 style=\"padding-bottom: 15px;margin-bottom: 30px;margin-top: 40px;border-bottom: 1px solid #F37237;color: #F37237\"><span>CONCLUSION<\/span><\/h3>\n\n\n\n<p>In conclusion, when experiencing multiple changes in an environment, it is best to understand those changes and to make sure you don\u2019t rule out the most obvious troubleshooting steps. And always, always reboot your Exchange servers when domain controllers are removed from the domain and replaced with new domain controllers.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"890\" height=\"470\" src=\"https:\/\/www.insentragroup.com\/us\/wp-content\/uploads\/sites\/21\/2021\/12\/Jay_Bleau_insentra_blog_12132021_featured.jpg\" alt=\"\" class=\"wp-image-7458\" srcset=\"https:\/\/www.insentragroup.com\/us\/wp-content\/uploads\/sites\/21\/2021\/12\/Jay_Bleau_insentra_blog_12132021_featured.jpg 890w, https:\/\/www.insentragroup.com\/us\/wp-content\/uploads\/sites\/21\/2021\/12\/Jay_Bleau_insentra_blog_12132021_featured-300x158.jpg 300w, https:\/\/www.insentragroup.com\/us\/wp-content\/uploads\/sites\/21\/2021\/12\/Jay_Bleau_insentra_blog_12132021_featured-768x406.jpg 768w\" sizes=\"(max-width: 890px) 100vw, 890px\" \/><\/figure>\n\n\n\n<p>Other words of wisdom can be found <a href=\"https:\/\/www.insentragroup.com\/us\/insights\/insights-search-results\/?author=Jay%20Bleau\" target=\"_blank\" rel=\"noreferrer noopener\">from me here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I apologize for the rather wordy title here. That title is intentional so hopefully, the search algorithms will land you on this page..<\/p>\n","protected":false},"author":71,"featured_media":7459,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[19],"tags":[88,219,221,220,218,59],"class_list":["post-7457","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-modern-workplace","tag-active-directory","tag-exchange","tag-exchange-2016","tag-exchange-2018","tag-mail-flow-issues","tag-microsoft","entry"],"_links":{"self":[{"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/posts\/7457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/users\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/comments?post=7457"}],"version-history":[{"count":2,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/posts\/7457\/revisions"}],"predecessor-version":[{"id":8926,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/posts\/7457\/revisions\/8926"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/media\/7459"}],"wp:attachment":[{"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/media?parent=7457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/categories?post=7457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/tags?post=7457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}