[Dovecot] FS Quotas, what am I doing wrong?

Kelsey Cummings kgc at corp.sonic.net
Thu Aug 30 00:47:00 EEST 2012


I'm not able to get the FS quota module to behave as I expect.  Depsite
having function fs quotas and dovecot apparently configured to use
then, the quotas appear to be empty and/or not configured.  Any clues?


# quota kgc
Disk quotas for user kgc (uid 500): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/sda3 1229460  7000000 8000000          103776  5000000 6000000        

# doveadm quota get -u kgc
Quota name Type    Value Limit                                  %
User user  STORAGE     0     -                                  0
User user  MESSAGE     0     -                                  0


# telnet 0 143
...
A003 GETQUOTAROOT INBOX     <- Not sure this is correct
A003 OK No quota.

imap-login: Login: user=<kgc>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=6048, secured, session=<1CGqXm7IhwB/AAAB>
imap: Debug: Loading modules from directory: /usr/lib64/dovecot
imap: Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so
imap: Debug: Module loaded: /usr/lib64/dovecot/lib11_imap_quota_plugin.so
imap(kgc): Debug: Effective uid=500, gid=501, home=/home/kgc
imap(kgc): Debug: Quota root: name=User user backend=fs args=inode_per_mail:noenforcing
imap(kgc): Debug: maildir++: root=/home/kgc/Maildir, index=, control=, inbox=/home/kgc/Maildir, alt=
imap(kgc): Debug: fs quota add mailbox dir = /home/kgc/Maildir
imap(kgc): Debug: fs quota block device = /dev/sda3
imap(kgc): Debug: fs quota mount point = /
imap(kgc): Debug: fs quota mount type = ext4

# 2.1.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-279.5.1.el6.x86_64 x86_64 Scientific Linux release 6.0 (Carbon) 
mail_debug = yes
mail_location = maildir:~/Maildir
mail_plugins = quota
mbox_write_locks = fcntl
passdb {
  driver = pam
}
plugin {
  quota = fs:User user:inode_per_mail:noenforcing
}
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
  driver = passwd
}
protocol imap {
  mail_plugins = quota imap_quota
}


-- 
Kelsey Cummings - kgc at corp.sonic.net      sonic.net, inc.
System Architect                          2260 Apollo Way
707.522.1000                              Santa Rosa, CA 95407



More information about the dovecot mailing list