Once the
ForbidDelMailbox parameter is changed from 1 (one) to 0 (zero), the MTA has the ability to delete the target mailbox. However it is important to understand how the agent will proceed.
The agent will not delete all existing mailboxes. The MTA will also
never delete a mailbox which was already processed by an agent (CSA or MTA) and which has been already (partially or fully) synchronized. But the MTA
will delete an existing mailbox if the mailbox was created before QMM was implemented or mailbox was created via other means and the user (the owner of this mailbox) was processed by dirsync and his mailbox was added to mailbox synchronization collection, in this case after allowing mailbox deletion the MTA will delete an existing mailbox and all mail data inside this mailbox will be lost.
It is important to understand how it works in order to chose the best approach. The MTA will only log on to a mailbox for which there is an existing PRV file. This means the MTA will try to delete only those mailboxes for which there are PRV files waiting to be delivered. Knowing this one can do the following:
1. Stop the MSA and NTA
2. Use the Service File Viewer and ensure the PRV files in queue are only for recipients whose target mailboxes can be safely deleted and re-created.
If there are any PRV files for already existing mailboxes and you don't want to delete those mailboxes, then removing those PRV files from the queue will ensure that the MTA will not log on to those mailboxes and will not delete them. When accumulated PRV files have been processed, change the
ForbidDelMailbox parameter back to 1 (one) and disallow mailbox deletion. Then previously removed PRV files can be put back in the queue.
------------------------------------------------------
Knowing all this, it is a good idea to keep the time interval between mailbox enabling and between mailbox synchronization short.Possible prevention step: Immediately after directory synchronization mail and mailbox enables target accounts, create a Calendar Synchronization job with a collection that includes all mailboxes. In this case it will be the CSA who creates the target mailboxes and there will be no issues with the MTA complaining about already existing mailboxes.