Mail synchronization is being performed by 3 agents - the Mail Source Agent (MSA), the Mail Transmission Agent (NTA) and the Mail Target Agent (MTA).
The MSA logs on to the source mailbox and retrieves the data. The retrieved data (PRV file) is compressed and passed to the NTA for further processing. The NTA moves the PRV file to the target Exchange server. The MTA receives the PRV files, uncompress the file and delivers the file to the destination mailbox.
The agents don't communicate with each other.
When the MSA retrieves all the data from the source mailbox it performs the switching operation, it does not communicate with the MTA to check that all the data has been successfully processed, therefore it will switch the mailbox if allowed to do so (if configured accordingly).
If there have been issues such as:
- the NTA was not started or could not move files due to name resolution or connectivity issues;
- or the MTA was not able to deliver the data, eg. due to missing or incorrect permissions and not being able to logon to target mailbox;
Then target mailbox will be missing data. Theoretically a mailbox can be switched without an existing target mailbox or with an empty target mailbox.
Often there are some issues at the beginning of a migration (incorrect permission, native Exchange issues) and when these issues have been resolved and mail starts flowing it is already too late. The MTA was trying to delivers some data and since it was not able to deliver the data it archived the files, now they are marked as dead and will not be delivered.