After clicking the Test & Enable Mailbox button in Dynamics 365, the Incoming Email Status shows as Failure and an alert is logged with the following details:
"Email can't be received because the license is invalid for the mailbox <Mailbox Name>.
Email Server Error Code: ErrorInvalidLicense"