Dumpster Config

“Dumpster” is an Open-Xchange proprietary App Suite feature that will list messages stored in a single Dovecot lazy_expunge mailbox.

This config moves the last copy of a message, when deleted, to a hidden EXPUNGED mailbox. Messages in the EXPUNGED mailbox will be automatically expunged after 7 days. Messages in EXPUNGED will not count toward the quota limit. The EXPUNGED mailbox will NOT be visible to hosts connecting on any IP other than 127.0.0.2 (App Suite should connect to Dovecot on this address so that EXPUNGED can be displayed by the Dumpster view).

/etc/dovecot/dovecot.conf:

namespace inbox {
  mailbox EXPUNGED {
    autoexpunge = 7d
  }
}

mail_plugins = $mail_plugins lazy_expunge
plugin {
  lazy_expunge = EXPUNGED
  lazy_expunge_only_last_instance = yes
  quota_rule = EXPUNGED:ignore
}

local 127.0.0.2 {
  plugin {
    acl = vfile:/etc/dovecot/lazy_expunge.acl
  }
}

protocol imap {
  mail_plugins = $mail_plugins acl
}

/etc/dovecot/lazy_expunge.acl:

EXPUNGED owner rwstipekxa