After you click the Test & Enable Mailbox button in Dynamics 365, the tests fails and the following alert is logged:
"The email message "Your mailbox is now connected to Dynamics 365" cannot be sent because the mailbox [Mailbox Name] is deactivated or disabled for outgoing email.
Email Server Error Code: MailboxDisabled"