Retention rules

Issue #201 resolved
s s created an issue

Hello,

We have mail in archive already processed and default value 'default_retention_days=2557'. Retention rules are empty. And we need to retain them all the time.

Will mail removed from archive after 2557 days automatically? Which setting i need to have for default_retention_days in this case? What is the 'periodic purge' settings at health page? Do i need to disable it?

Thank you.

Comments (4)

  1. Janos SUTO repo owner

    When piler archives a message, it assigns a retention value (=a timestamp) to it.

    The removal of aged emails is done by pilerpurge. You must run pilerpurge if you want aged emails to be purged, otherwise they will be in the archive to eternity. So if you don't want emails to be purged, then simply don't run pilerpurge.

    If you run pilerpurge periodically (eg. from crontab), then it first checks whether purging is allowed. If not, then it stops, otherwise it queries the ids of aged messages, then removes them from the disk, and sets their status as deleted in the metadata table.

    Note that to preserve the history of emails, its metadata entry is not deleted.

    When to disable the periodic purge on the health page? Usually if you have an ongoing audit to prevent the loss of potentially required messages.

    Your company should have a well established retention policy. If may be as simple as to set the default retention to 7 years or so. It depends on where you live what industrial sector you are, your countries legislation, etc.

  2. s s reporter

    If we need periodic retention to 7 years i suppose following settings need to be enabled: 1 Set default_retention_days=2557 2 Enable 'Retention rule' for 7 years 3 Enable 'periodic purge' 4 Enable pilerpurge in piler contab Please confirm if this is correct.

    Thank you.

  3. Janos SUTO repo owner

    You are right, except you don't need step #2, since the default_retention_days is applied to all emails, so if all emails is needed to keep for 7 years, than just set default_retention_days, and you are good to go.

  4. Log in to comment