Andreas Helmcke
2012-Apr-20 11:11 UTC
[Dovecot] default mail quota when using per user quota
Hello, using dovecot 2.1 and per user mail quota via ldap is there a way to have a default quota which gets used, if the "quota" field in ldap is not set? I tried with: plugin { quota = maildir:User quota quota_rule = *:storage=3G } userdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } and in dovecot-ldap.conf: user_attrs = dcMailQuota=quota_rule=*:storage=%$ but with this configuration the mail quota /allways/ gets loaded from ldap resulting in users without dcMailQuota attribute having no quota at all. Greetings Andreas
Nikolaos Milas
2012-Apr-20 12:26 UTC
[Dovecot] default mail quota when using per user quota
On 20/4/2012 2:11 ??, Andreas Helmcke wrote:> using dovecot 2.1 and per user mail quota via ldap is there a way to have a default quota which gets used, if the > "quota" field in ldap is not set?You may see: http://www.mail-archive.com/dovecot at dovecot.org/msg44010.html Regards, Nick
Andreas Helmcke
2012-Apr-20 14:31 UTC
[Dovecot] default mail quota when using per user quota
Am 20.04.2012 14:26, schrieb Nikolaos Milas:> > You may see: http://www.mail-archive.com/dovecot at dovecot.org/msg44010.htmlI do not see any relevant differences to my setup. Do you /really/ have a default quota of 4G if roomNumber is empty or rather have unlimited quota then? Greetings Andreas
Nikolaos Milas
2012-Apr-20 18:01 UTC
[Dovecot] default mail quota when using per user quota
On 20/4/2012 5:31 ??, Andreas Helmcke wrote:> Do you/really/ have a default quota of 4G if roomNumber is empty or rather have unlimited quota then?Yes, default quota is 4G for all mailboxes; if roomNumber is defined, then that value is used instead. In practice we are using non-default values for very few maiboxes. We have a relatively small number of users/mailboxes (<300), so we have the luxury of enjoying relatively large mailboxes (with some "overbooking" - because most users rarely use more than 1G). Nick
Timo Sirainen
2012-Apr-20 21:18 UTC
[Dovecot] default mail quota when using per user quota
On 20.4.2012, at 14.11, Andreas Helmcke wrote:> using dovecot 2.1 and per user mail quota via ldap is there a way to have a default quota which gets used, if the > "quota" field in ldap is not set?By "not set" you mean it doesn't exist at all, or it exists but is empty?> I tried with: > > plugin { > quota = maildir:User quota > quota_rule = *:storage=3G > } > > userdb { > args = /etc/dovecot/dovecot-ldap.conf > driver = ldap > } > > and in dovecot-ldap.conf: > user_attrs = dcMailQuota=quota_rule=*:storage=%$If dcMailQuota isn't returned, then the global quota_rule is used. If it is returned as empty, I guess it gets treated as unlimited quota. There's currently no easy way avoid this (a difficult way could be e.g. post-login scripting, but that works only for imap/pop3).
Seemingly Similar Threads
- acls not copied when creating subfolder of private INBOX
- Compile error "iproute2"
- "sieve: failed to store into mailbox 'Junk': Read-only mbox" over root_squashed NFS, lmtp : euid/egid set and access() don't mix together for me
- Problem switching from LDA to LMTP (with Postfix)
- samba4 AD, allow users to modify (some of) their own attributesHi