Skip to main content

Expunge Specific IMAP Folder?

Comments

4 comments

  • cPanelMichael
    Hello :) Could you let us know which version of cPanel is installed on your system? cPanel version 11.40 includes Dovecot 2.2 and native support to automatically expunge the Trash directory. It's configured in: "WHM Home " Service Configuration " Mailserver Configuration" Note that cPanel version 11.40 is currently only available in the "Current" and "Edge" build tiers. Thank you.
    0
  • MACscr
    Michael, yes, I am running 11.40, but if you read my question, I am trying to do another expunge a folder OTHER than Trash. The code example was just an example.
    0
  • cPanelMichael
    You can edit the following file for local modifications to the Dovecot configuration: /var/cpanel/templates/dovecot2.2/main.local
    Note: You can copy this file from /var/cpanel/templates/dovecot2.2/main.default if it does not exist. The relevant section here is: [% IF expire_trash %] expire_dict = proxy::expire expire = Trash expire2 = "Deleted Messages" expire3 = "INBOX.Deleted Messages" expire4 = INBOX.Trash
    You can add additional mailbox names to this section (e.g. Junk). After making the custom modifications, you must run: /scripts/builddovecotconf
    Thank you.
    0
  • MACscr
    yeah, i was thinking of that method as well, but wasnt sure how I could control how often the Junk folder would be expired. needs to be a bit more often than the Trash.
    0

Please sign in to leave a comment.