I have setup below Retention Policy for testing. The objective is to move more than 1 day EMAIL to Archive Database and Delete more than 3 weeks email. Calendar, Contact, Note, Task, Journal need to be exclude from this Retention policy and remain in mailbox.
After apply below Retention Policy on testing account, the mail > 1 day moved archive and mail > 3 weeks get deleted, which work as expected.
Problem: Calendar, Contact, Note, Task, Journal item also get Archived and deleted. Is there anything I missed causing this issue?
Setup procedure
- Create Retention Policy Tag
Set all Items move to archive 1day
New-RetentionPolicyTag "All Items move Archive 1 day" -Type All -Comment "Items without a retention tag are moved to Archive after 1 day." -AgeLimitForRetention 1 -RetentionAction MoveToArchive -RetentionEnabled $true
Set all Items delete after 3weeks
New-RetentionPolicyTag "All Items delete 3 weeks" -Type All -Comment 'Items without a retention tag are delete after 3 week.' -AgeLimitForRetention 21 -RetentionAction DeleteAndAllowRecovery -RetentionEnabled $true
Exclude Calendar, Contact, Note, Task, Journal items from above two rule
New-RetentionPolicyTag "All Contacts item never remove" -Type Contacts -Comment "Contact item never remove" -AgeLimitForRetention $null -RetentionAction "DeleteAndAllowRecovery" -RetentionEnabled $false
New-RetentionPolicyTag "All Calendar item never remove" -Type Calendar -Comment "Calendar item never remove" -AgeLimitForRetention $null -RetentionAction "DeleteAndAllowRecovery" -RetentionEnabled $false
New-RetentionPolicyTag "All Note item never remove" -Type Notes -Comment "Note item never remove" -AgeLimitForRetention $null -RetentionAction "DeleteAndAllowRecovery" -RetentionEnabled $false
New-RetentionPolicyTag "All Task item never remove" -Type Tasks -Comment "Task item never remove" -AgeLimitForRetention $null -RetentionAction "DeleteAndAllowRecovery" -RetentionEnabled $false
New-RetentionPolicyTag "All Journal item never remove" -Type Journal -Comment " Journal item never remove" -AgeLimitForRetention $null -RetentionAction "DeleteAndAllowRecovery" -RetentionEnabled $false
- Create Retention Policy and link to Retention Policy Tag
New-RetentionPolicy "1day Archive 3weeks Delete Policy" -RetentionPolicyTagLinks"All Items move Archive 1 day", "All Items delete 3 weeks", "All Contacts item never remove", “All Calendar item never remove", "All Note item never remove", "All Task item never remove", "All Journal item never remove"
- Assign Retention Policy to mailbox
Set-Mailbox QATesting -RetentionPolicy "1day Archive 3weeks Delete Policy"
- Force run Retention Policy on mailbox
start-managedfolderassistant QATesting