I have managed to get the master quota working, but cannot get individual user
quota to do anything.
Here is a line from /etc/dovecot/passwd:
_kari at
karico.ca:XXXXXXXXX:502:502::/var/mail/vhosts/karico.ca/kari::userdb_quota_rule=*:bytes=600M_
Also, based on this, the expire cron job says: Unknown dict module: db
# 1.1.6: /etc/dovecot.conf
# OS: Linux 2.6.18-92.1.18.el5.centos.plusxen i686 CentOS release 5.2 (Final)
log_path: /var/log/dovecot/dovecot.log
info_log_path: /var/log/dovecot/dovecot.log
protocols: imap pop3 imaps pop3s
listen: 209.222.57.19
ssl_listen: 209.222.57.19
verbose_ssl: yes
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
login_greeting: mail.karico.ca ready.
login_greeting_capability: yes
verbose_proctitle: yes
mail_access_groups: virtual
mail_location: maildir:~/Maildir
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
auth external:
verbose: yes
debug: yes
debug_passwords: yes
socket:
type: connect
master:
path: /var/run/dovecot/auth-master
mode: 384
auth default:
verbose: yes
debug: yes
debug_passwords: yes
passdb:
driver: passwd-file
args: /etc/dovecot/passwd
userdb:
driver: static
args: uid=virtual gid=virtual home=/var/mail/vhosts/%d/%n
socket:
type: listen
client:
path: /var/run/dovecot/auth-client
mode: 432
master:
path: /var/run/dovecot/auth-master
mode: 384
plugin:
quota: maildir:User quota
quota_rule: *:storage=1G
quota_rule2: Trash:storage=20%%
quota_rule3: Spam:storage=30%%
quota_warning: storage=95%% /usr/local/bin/quota-warning.sh 95
quota_warning2: storage=70%% /usr/local/bin/quota-warning.sh 70
expire: Trash 7 Spam 30
expire_dict: db:/var/lib/dovecot/expire.db
dict:
expire: db:/var/lib/dovecot/expire.db
On Sun, 2008-11-30 at 17:58 -0500, Kari Suomela (DC) wrote:> I have managed to get the master quota working, but cannot get individual user quota to do anything. > > Here is a line from /etc/dovecot/passwd: > _kari at karico.ca:XXXXXXXXX:502:502::/var/mail/vhosts/karico.ca/kari::userdb_quota_rule=*:bytes=600M_The _ prefix and suffix isn't probably really in there? Anyway looks correct. Set mail_debug=yes and auth_debug=yes to see if quota_rule gets transferred correctly to imap process.> Also, based on this, the expire cron job says: Unknown dict module: db..> expire: Trash 7 Spam 30 > expire_dict: db:/var/lib/dovecot/expire.db > dict: > expire: db:/var/lib/dovecot/expire.dbBerkeley DB support isn't linked to imap processes. You'll need to configure it to use dict proxy like the example shows: http://wiki.dovecot.org/Plugins/Expire -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20081201/0951e379/attachment-0002.bin>
On 30/11/2008 19:37 Timo Sirainen wrote:> On Sun, 2008-11-30 at 17:58 -0500, Kari Suomela (DC) wrote: > >> I have managed to get the master quota working, but cannot get individual user quota to do anything. >> >> Here is a line from /etc/dovecot/passwd: >> kari at karico.ca:XXXXXXXXX:502:502::/var/mail/vhosts/karico.ca/kari::userdb_quota_rule=*:bytes=600M >> > Anyway looks > correct. Set mail_debug=yes and auth_debug=yes to see if quota_rule gets > transferred correctly to imap process. >I do not see anything about the passwd file line being read: dovecot: Nov 30 21:55:13 Info: imap-login: Login: user=<kari at karico.ca>, method=PLAIN, rip=209.222.57.22, lip=209.222.57.19, TLS dovecot: Nov 30 21:55:13 Info: IMAP(kari at karico.ca): Loading modules from directory: /usr/lib/dovecot/imap dovecot: Nov 30 21:55:13 Info: IMAP(kari at karico.ca): Module loaded: /usr/lib/dovecot/imap/lib10_quota_plugin.so dovecot: Nov 30 21:55:13 Info: IMAP(kari at karico.ca): Module loaded: /usr/lib/dovecot/imap/lib11_imap_quota_plugin.so dovecot: Nov 30 21:55:13 Info: IMAP(kari at karico.ca): Effective uid=502, gid=502, home=/var/mail/vhosts/karico.ca/kari dovecot: Nov 30 21:55:13 Info: IMAP(kari at karico.ca): Quota root: name=User quota backend=maildir argsdovecot: Nov 30 21:55:13 Info: IMAP(kari at karico.ca): Quota rule: root=User quota mailbox=* bytes=1073741824 (0%) messages=0 (0%) dovecot: Nov 30 21:55:13 Info: IMAP(kari at karico.ca): Quota rule: root=User quota mailbox=Trash bytes=214748364 (20%) messages=0 (0%) dovecot: Nov 30 21:55:13 Info: IMAP(kari at karico.ca): Quota rule: root=User quota mailbox=Spam bytes=322122547 (30%) messages=0 (0%) dovecot: Nov 30 21:55:13 Info: IMAP(kari at karico.ca): Quota warning: bytes=1020054732 (95%) messages=0 (0%) command=/usr/local/bin/quota-warning.sh 95 dovecot: Nov 30 21:55:13 Info: IMAP(kari at karico.ca): Quota warning: bytes=751619276 (70%) messages=0 (0%) command=/usr/local/bin/quota-warning.sh 70 dovecot: Nov 30 21:55:13 Info: IMAP(kari at karico.ca): maildir: data=~/Maildir dovecot: Nov 30 21:55:13 Info: IMAP(kari at karico.ca): maildir++: root=/var/mail/vhosts/karico.ca/kari/Maildir, index=, control=, inbox=/var/mail/vhosts/karico.ca/kari/Maildir dovecot: Nov 30 21:55:13 Info: IMAP(kari at karico.ca): Disconnected: Logged out bytes=39/132