Add Retention Policy for Automatic Deletion of old Emails

Add support for mailbox-wide or domain-wide email retention policies that automatically delete messages older than a configurable age.

  • Apply globally, per domain, or per mailbox.
  • Define retention periods in days, months, or years.
  • Optional exclusions for specific folders (e.g. Archive, Legal Hold).
  • Optional dry-run mode to preview affected messages.
  • Logging and reporting of deleted messages.
  • Include calenders