Quick tip on a problem that can occur after a deleted mailbox or distribution group has been restored. Users who send mails to the restored mailbox or distribution list receive an NDR with the following error message:
STOREDRV.Deliver.Exception:AccountDisabledException.MapiExceptionMailboxDisabled; Failed to process message due to a permanent exception with message The mailbox /o=FrankysWeb/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=EX1/cn=Microsoft System Attendant cannot be opened.
This problem occurs, for example, if an AD group has been deleted which was activated by email. If the AD group is now restored from the Active Directory recycle bin, the above error occurs. The same applies to mailboxes that have been disconnected or the associated AD user has been deleted and restored.
One of the following commands can be used to resolve the problem.
Exchange 2010:
1
|
Get-MailboxDatabase | Clean-MailboxDatabase |
Exchange 2013 or higher:
1
|
Get-MailboxStatistics -Database MAILBOXDATABASENAME | ForEach { Update-StoreMailboxState -Database $_ .database -Identity $_ .MailboxGuid -Confirm : $false } |
The commands "Clean-MailboxDatabase" or "Update-StoreMailboxState" synchronize the Exchange mailbox/group status with the corresponding Active Directory object. After the corresponding command has been executed, the mailboxes can be sent again.