autoexpunge - different settings for different users

Leon Kyneur leon at dexterous.org
Tue Feb 9 03:01:23 UTC 2016


Hi Tom,

Looks like you are missing 'mailbox' keyword:

namespace/inbox/mailbox/Drafts/autoexpunge=3d

Regards,

Leon

On Tue, Feb 9, 2016 at 12:51 PM Tom Johnson <tj at terramar.net> wrote:

>
> > On Feb 7, 2016, at 10:59 AM, Timo Sirainen <tss at iki.fi> wrote:
> >
> > 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.
>
>
> I have my query returning the extra field, with the namespace entries
> separated by tabs.  If I do a doveadm, I see it:
>         # doveadm user <xxx>
>         field   value
>         uid     1005
>         gid     1005
>         home    <xxx>
>         mail    <xxx>
>         namespace/inbox/Drafts/autoexpunge      3d
>         namespace/inbox/Quarantine/autoexpunge  3d
>         quota_rule      *:storage=10000M
>
>
> I turned on debugging, and tried to deliver some email to see if
> autoexpunge is called, and I'm seeing this:
>
>         2016-02-09T01:41:23+0000 s01.lax.mailroute.net dovecot: doveadm(
> tj at terramar.net): Debug: Unknown userdb setting:
> plugin/namespace/inbox/Drafts/autoexpunge=3d
>         2016-02-09T01:41:23+0000 s01.lax.mailroute.net dovecot: doveadm(
> tj at terramar.net): Debug: Unknown userdb setting:
> plugin/namespace/inbox/Quarantine/autoexpunge=3d
>
>
>
> Anybody know what am I missing?
>
> Thanks-
>
> Tom
>


More information about the dovecot mailing list