Skip to content

Commit

Permalink
expunge: reset maildirsize after expunging old mails
Browse files Browse the repository at this point in the history
  • Loading branch information
missytake authored and hpk42 committed Mar 18, 2024
1 parent 4bca789 commit 2097233
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmdeploy/src/cmdeploy/dovecot/expunge.cron.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
# or only temporary (but then they shouldn't be around after {{ config.delete_mails_after }} days anyway).
2 0 * * * vmail find /home/vmail/mail/{{ config.mail_domain }} -path '*/tmp/*' -mtime +{{ config.delete_mails_after }} -type f -delete
2 0 * * * vmail find /home/vmail/mail/{{ config.mail_domain }} -path '*/.*/tmp/*' -mtime +{{ config.delete_mails_after }} -type f -delete
3 0 * * * vmail find /home/vmail/mail/{{ config.mail_domain }} -name 'maildirsize' -type f -delete

0 comments on commit 2097233

Please sign in to comment.