Mailbox maintenance
Enabling the cleaner
Section titled “Enabling the cleaner”gromox-cleaner.timer runs the cleaner daily, but it is not enabled after installation. Check and enable it once retention and backup requirements are settled (see the post-installation checklist and gromox-cleaner.service(8)):
systemctl status gromox-cleaner.timersystemctl enable --now gromox-cleaner.timerPeriodic clearing of Trash folder
Section titled “Periodic clearing of Trash folder”To automatically empty the trash folder (a.k.a. wastebasket) of all mailboxes, you can extend the cleaner service unit with the following override (systemctl edit gromox-cleaner.service):
[Service]Environment=softdelete_purgetime=30d trashbin_purgetime=7dEnvironmentFile=EnvironmentFile=-/etc/gromox/gromox.cfgExecStart=ExecStart=/usr/sbin/gromox-mbop foreach.here.mb ( purge-softdelete -t ${softdelete_purgetime} -r / ) ( purge-datafiles ) ( emptyfld -R --delempty -t ${trashbin_purgetime} DELETED )