/etc/dovecot-used-quota.conf
# used password for vmailadmin in iRedMail.tips file #
connect = host=localhost dbname=vmail user=vmailadmin password=r21JQMc59LNkVNmvAjvjKbLBdSzY8E
map {
pattern = priv/quota/storage
table = quota
username_field = username
value_field = bytes
}
map {
pattern = priv/quota/messages
table = quota
username_field = username
value_field = messages
}
dovecot.log with "mail_debug=yes" enabled
Oct 19 19:19:26 IMAP(falcon@example.com): Info: Loading modules from directory: /usr/lib/dovecot/imap
Oct 19 19:19:26 IMAP(falcon@example.com): Info: Module loaded: /usr/lib/dovecot/imap/lib10_quota_plugin.so
Oct 19 19:19:26 IMAP(falcon@example.com): Info: Module loaded: /usr/lib/dovecot/imap/lib11_imap_quota_plugin.so
Oct 19 19:19:26 IMAP(falcon@example.com): Info: Effective uid=501, gid=501, home=/var/vmail/vmail1/example.com/falcon/
Oct 19 19:19:26 IMAP(falcon@example.com): Info: Quota root: name=user backend=dict args=:proxy::quotadict
Oct 19 19:19:26 IMAP(falcon@example.com): Info: Quota rule: root=user mailbox=* bytes=10485760 messages=0
Oct 19 19:19:26 IMAP(falcon@example.com): Info: Quota warning: bytes=8912896 (85%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 85
Oct 19 19:19:26 IMAP(falcon@example.com): Info: Quota warning: bytes=9437184 (90%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 90
Oct 19 19:19:26 IMAP(falcon@example.com): Info: Quota warning: bytes=9961472 (95%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 95
Oct 19 19:19:26 IMAP(falcon@example.com): Info: dict quota: user=falcon@example.com, uri=proxy::quotadict, noenforcing=0
Oct 19 19:19:26 IMAP(falcon@example.com): Info: maildir: data=//var/vmail/vmail1/example.com/falcon//Maildir/:INDEX=//var/vmail/vmail1/example.com/falcon//Maildir/
Oct 19 19:19:26 IMAP(falcon@example.com): Info: maildir++: root=//var/vmail/vmail1/example.com/falcon//Maildir, index=, control=, inbox=//var/vmail/vmail1/example.com/falcon//Maildir
Oct 19 19:19:26 imap-login: Info: Login: user=<falcon@example.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 19 19:19:26 IMAP(falcon@example.com): Info: Namespace : Using permissions from //var/vmail/vmail1/example.com/falcon//Maildir: mode=0700 gid=-1
Oct 19 19:19:26 IMAP(falcon@example.com): Info: Disconnected: Logged out bytes=274/2503
corresponding "sieve.log" file
Oct 19 19:16:26 deliver(raptor@example.com): Info: Loading modules from directory: /usr/lib/dovecot/lda
Oct 19 19:16:26 deliver(raptor@example.com): Info: Module loaded: /usr/lib/dovecot/lda/lib10_quota_plugin.so
Oct 19 19:16:26 deliver(raptor@example.com): Info: Module loaded: /usr/lib/dovecot/lda/lib90_sieve_plugin.so
Oct 19 19:16:26 deliver(raptor@example.com): Info: auth input: home=/var/vmail/vmail1/example.com/raptor/
Oct 19 19:16:26 deliver(raptor@example.com): Info: auth input: quota_rule=*:bytes=10485760
Oct 19 19:16:26 deliver(raptor@example.com): Info: Quota root: name=user backend=dict args=:proxy::quotadict
Oct 19 19:16:26 deliver(raptor@example.com): Info: Quota rule: root=user mailbox=* bytes=10485760 messages=0
Oct 19 19:16:26 deliver(raptor@example.com): Info: Quota warning: bytes=8912896 (85%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 85
Oct 19 19:16:26 deliver(raptor@example.com): Info: Quota warning: bytes=9437184 (90%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 90
Oct 19 19:16:26 deliver(raptor@example.com): Info: Quota warning: bytes=9961472 (95%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 95
Oct 19 19:16:26 deliver(raptor@example.com): Info: dict quota: user=raptor@example.com, uri=proxy::quotadict, noenforcing=0
Oct 19 19:16:26 deliver(raptor@example.com): Info: maildir: data=//var/vmail/vmail1/example.com/raptor//Maildir/:INDEX=//var/vmail/vmail1/example.com/raptor//Maildir/
Oct 19 19:16:26 deliver(raptor@example.com): Info: maildir++: root=//var/vmail/vmail1/example.com/raptor//Maildir, index=, control=, inbox=//var/vmail/vmail1/example.com/raptor//Maildir
Oct 19 19:16:26 deliver(raptor@example.com): Info: dict quota: user=raptor@example.com, uri=proxy::quotadict, noenforcing=0
Oct 19 19:16:26 deliver(raptor@example.com): Info: sieve: user's script path /var/vmail/sieve/example.com/raptor/dovecot.sieve doesn't exist (using global script path in stead)
Oct 19 19:16:26 deliver(raptor@example.com): Info: sieve: using sieve path for user's script: /var/vmail/sieve/dovecot.sieve
Oct 19 19:16:26 deliver(raptor@example.com): Info: sieve: opening script /var/vmail/sieve/dovecot.sieve
Oct 19 19:16:26 deliver(raptor@example.com): Info: sieve: executing compiled script /var/vmail/sieve/dovecot.sieve
Oct 19 19:16:27 deliver(raptor@example.com): Info: Namespace : Using permissions from //var/vmail/vmail1/example.com/raptor//Maildir: mode=0700 gid=-1
Oct 19 19:16:27 deliver(raptor@example.com): Error: Internal quota calculation error
Oct 19 19:16:27 deliver(raptor@example.com): Error: sieve: msgid=<eecba1af73ccf2527444c557010baec7@example.com>: failed to store into mailbox 'INBOX': Internal error occurred. Refer to server log for more information. [2010-10-19 19:16:26]
Oct 19 19:16:27 deliver(raptor@example.com): Error: sieve: script /var/vmail/sieve/dovecot.sieve failed with unsuccessful implicit keep