Set the following to increase the SQL command timeouts.
For Archive Manager 5.x and above open the Configuration Console and click Advanced Settings. Add the following two settings and values:
CommandTimeout | 86400
RetentionTimeoutSec | 86400
Add the "CommandTimeout" key and value to the registry on the Archive Manager server:
1. Open Registry Editor on Archive Manager Server.
2. Go to HKEY_LOCAL_MACHINE\Software\Aftermail on a 32 bit OS or HKEY_LOCAL_MACHINE\Software\WOW6432NODE\Aftermail on a 64bit OS
3. Add string value "CommandTimeout" with value 86400.
4. Close registry editor.
5. Restart Archive Manager Message Retention Policy Service and the Archive Manager Full Text Search service.