Retention rules not applying

Issue #454 resolved
Former user created an issue

I'm running the OVA vmware image and can't seem to get the retention policy to delete aged emails beyond the retention date that i've set via browser and piler.conf file. When I perform a search, the result are beyond the retention day set.

Comments (12)

  1. Janos SUTO repo owner

    pilerpurge removes any message where the 'retained' value is less than the current timestamp. So run "mysql -u piler -p piler", then execute the following query:

    select id from metadata where retained < NOW() limit 100;
    

    to see what messages pilerpurge should remove. The -d option instructs pilerpurge to dry run, ie. just show what it would remove.

  2. Trey

    The select statement resulted in this.

    mysql> select id from metadata where retained < NOW() limit 100; Empty set (0.00 sec)

  3. Janos SUTO repo owner

    OK, then it means that no message is aged yet. See the default retention value in piler.conf

  4. Trey

    i've rebooted and ran /etc/init.d/rc.piler reload. is that what you're asking me to do or is it a different command?

  5. Trey

    so i've reloaded the ova image and started from scratch and edited the default retention period to 3 days. After I run the Pilerpurge command, I still get search result for messages older than 3 days.

    Do I need to create an Archive Rule & Retention Rule or will a single Retention Run be okay?

  6. Janos SUTO repo owner

    When the daemon archives a message, it syslogs the retention period. Please show me some log entries.

  7. Log in to comment