After clicking the Test & Enable Mailbox button in Dynamics 365, the test results show as Failure and the following error appears on the Alerts tab of the mailbox:
"Email cannot be received because the mailbox [Mailbox Name] does not have an email server profile associated with it or the email server profile is inactive.
Email Server Error Code: InvalidIncomingEmailServerProfile"