dovecot ldap quota
Steffen Kaiser
skdovecot at smail.inf.fh-brs.de
Tue Oct 28 07:41:08 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, 27 Oct 2014, Mirko ML wrote:
> plugin {
> quota = maildir:User quota
> }
>
> grep -v '^ *\(#.*\)\?$' dovecot-ldap.conf.ext
> user_attrs = quota=quota_rule=*:bytes=%$
>
> And at the end the problem that i see on log:
>
> I cant understand this 2 line:
>
> Oct 27 20:42:36 mail dovecot: imap(ops at klez.it): Debug: Quota rule: root=User quota mailbox=* bytes=20971520 messages=0
>
> Oct 27 20:42:36 mail dovecot: imap(ops at klez.it): Error: user ops at klez.it: Initialization failed: Failed to initialize quota: Invalid quota root quota: Invalid rule *:bytes=20971520S: Invalid rule limit value 'bytes=20971520S': Unknown unit: S
>
> This is a situation that I want to migrate from courier to dovecot..
> I see this post http://y6.gl/nnheTd that seems to have my problem.
What value is in the LDAP attribute, with our without the pending 'S'?
http://wiki2.dovecot.org/Quota/Configuration says:
"All of these support also b/k/M/G/T/% suffixes." (No "S" here.) and:
"Backend-specific configuration currently is used only with Maildir++
quota backend. It means you can have the quota in Maildir++ format (e.g.
"10000000S")." Which I interprete as: If the quote is read from Maildir
storage.
You read the quota from LDAP, hence, the 2nd statement does not apply.
If you have a "S" suffix in LDAP, remove it.
You could patch Dovecot to accept the "S" suffix like "B", see
src/plugins/quota/quota-util.c in function quota_limit_parse().
Maybe, ask the Dovecot development team for an enhancement.
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBVE9IlXz1H7kL/d9rAQJKSgf6Aiinsm3Q2o3AodUG7OPFt9lUyrCirGdC
LRmO9R83V4+N8bkJRLVZYUO0pRStVk0RUKzrko8ixXKp62qYkZmU8pP+rzGcFt6T
NbfDNRoBNo3iHQ7nhYY0772XOvIgN2ne1KFhCFp6UxOgQFSjUlAqAV1pZ4LVgVHF
2815TK5Uugeiz4BWVYsb4F4lU6k7K2yEemTSTwe/gaYNxyUZdqmDOujbSnfYX4cd
Uv4ujk9yeFDZ7jqCJvWNI9yPau1zdJ0vp/f7u6U1pOqeDUYcj2d7Q8W+SPaHvmNz
+kw65HmP8YrwbbCdLOZOeqmSz5PoGQ4CdWXUrpLPhhmH7xkBrxGAjA==
=OJvT
-----END PGP SIGNATURE-----
More information about the dovecot
mailing list