Every now and then, when re-enabling a user’s mailbox after it has been disabled, OWA will spit out an error message saying that the account is still disabled and the user will not be able to log in. To fix this, run the following command in the Exchange Management Shell:
get-mailboxdatabase | clean-mailboxdatabase