Enabling autoexpunge for mailboxes created by sieve rules

Salatiel Filho salatiel.filho at gmail.com
Mon Aug 16 12:00:04 EEST 2021


Hi everyone. I have global sieve rules that can create mailboxes
automatically by using "fileinto :create
some/mailbox/that/does/not/exist".
The emails are delivered to dovecot using lmtp and I can see the
mailboxes created just fine.
Is there a way to configure all new mailboxes created by those sieve
rules to automatically set to autoexpunge after 15 days ?

I tried this , but it did not work.

namespace {
  type = public
  separator = /
  prefix = mypublic/
  location = maildir:/var/spool/vmail/dovecot/mail/
  subscriptions = no
  list = children
  mailbox * {
    autoexpunge=15d
  }
}

plugin {
  acl = vfile
}

# dovecot --version
2.3.15 (0503334ab1)


Thanks!


More information about the dovecot mailing list