autoexpunge - different settings for different users
Tom Johnson
tj at terramar.net
Mon Feb 8 04:46:30 UTC 2016
> On Feb 7, 2016, at 10:59 AM, Timo Sirainen <tss at iki.fi> wrote:
>> On 07 Feb 2016, at 04:50, Tom Johnson <tj at terramar.net> wrote:
>>
>> I have some users where I'd like to expunge their mail at different times.
>> ....
>> ....
>> Is there a way to do some sort of lookup for this? Or is this beyond the ability of the autoexpunge feature? Should I just use a cron job and use "doveadm expunge" on a user-by-user basis?
>
> You can override any mail-related setting from userdb. So for example if you have:
>
> namespace inbox {
> mailbox Trash {
> autoexpunge = 30d
> }
> }
>
> You can have your userdb return namespace/inbox/Trash/autoexpunge=90d extra field for other users. http://wiki2.dovecot.org/UserDatabase/ExtraFields has some examples.
Thank you, Timo!
Can you return something like "namespace/inbox/*/autoexpuge=90d" to cover all the namespaces? And then override individual ones if necessary?
More information about the dovecot
mailing list