Skip to main content

Auto Expunge Trash, actually is not expunging anything

Comments

2 comments

  • cPanelLauren
    Hi @Kent Brockman So this should be part of the nightly maintenance that runs. One of the items that is run during maintenance is /scripts/dovecot_maintenance
    And that script includes the auto expunge: dovecot_maintenance - Run nightly maintenance for dovecot which includes expunging trash and purging deleted messages from mdbox.
    There are some caveats like mail that was in the trash prior to enabling auto expunge will not have an expiration added and as such will not be auto expunged, there is also some issue with mail directly filtered to trash using an email filter. There are a few other threads referencing the same issue as well: Can you confirm that your mail doesn't meet any of the conditions and/or are there any notifications when you run dovecot maintenance manually? Thanks!
    0
  • cPanelLauren
    Hi @Kent Brockman To look more in-depth on this I'd like to see what you have when you do the following - First, identify the mail in trash with an expiry time - the last entry is an epoch date for when the mail was delivered : # sqlite3 /var/cpanel/dovecot/dict.sqlite SQLite version 3.7.17 2013-05-20 00:56:22 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> .tables expires sqlite> select * from expires; test@test.tld|INBOX.Trash|1539182250
    You can translate that into a standard date with the following: # date -d @1539182250 Wed Oct 10 09:37:30 CDT 2018
    Add 30 days to that and you will have the date the mail should be deleted automatically. Thanks!
    0

Please sign in to leave a comment.