autoexpunge wildcard mailbox from userdb

Leon Kyneur leon at
Mon May 2 13:40:49 UTC 2016

On 02/05/16 16:51, Timo Sirainen wrote:
> On 02 May 2016, at 03:47, Leon Kyneur <leon at> wrote:
>> Was excited to see that wildcards are now possible on autoexpunge in the 2.2.24 release.
>> However I'm trying to configure these from the userdb lookup and it doesn't appear to be working.
>> if I set in 15-mailboxes.conf
>> mailbox Trash/* {
>> ...
>>    autoexpunge = 10m
>> }
>> everything works..
>> however if I return
>> =namespace/inbox/mailbox/Trash/*/autoexpunge=10m
> Using "/" in the namespace name conflicts with the "/" separator, so it needs to be escaped. You can use "doveconf -n -S" to find out what the escaping needs to look like ("/" = "\s").

Thanks Timo - that's what I was missing.

Another thing - will it ever be possible to wildcard *all* mailboxes?

My setup doesn't specify prefix = INBOX/ on "namespace inbox"... without 
knowing all of the root mailboxes users have created is it possible to 
autoexpunge these?

This obviously does not work

More information about the dovecot mailing list