On 2012-01-25 17:01, Daniel L. Miller wrote:
On 1/25/2012 2:01 AM, Palatine Web Support wrote:
On 2012-01-25 05:38, Daniel L. Miller wrote:
On 1/24/2012 8:35 AM, Palatine Web Support wrote:

Here is my dovecot config:

plugin {
  quota = maildir:User Quota
  quota_rule2 = Trash:storage=+100M
}
[..]

So it picks up my set quota of 3MB but dovecot is not rejecting emails if I am over my quota.

Can anyone help?

Is the quota plugin being loaded?  What is the output of:

doveconf | grep -B 2 plug

The modules are being loaded. From the log file with debugging enabled:

Jan 25 09:59:58 mail dovecot: IMAP(x...@xxx.com): Loading modules from directory: /usr/lib/dovecot/modules/imap Jan 25 09:59:58 mail dovecot: IMAP(x...@xxx.com): Module loaded: /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so Jan 25 09:59:58 mail dovecot: IMAP(x...@xxx.com): Module loaded: /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so Jan 25 09:59:58 mail dovecot: IMAP(x...@xxx.com): Effective uid=150, gid=8, home=/var/vmail/xxx.com/support Jan 25 09:59:58 mail dovecot: IMAP(x...@xxx.com): Quota root: name=User Quota backend=dirsize args= Jan 25 09:59:58 mail dovecot: IMAP(x...@xxx.com): Quota rule: root=User Quota mailbox=* bytes=3145728 messages=0 Jan 25 09:59:58 mail dovecot: IMAP(x...@xxx.com): Quota rule: root=User Quota mailbox=Trash bytes=104857600 messages=0 Jan 25 09:59:58 mail dovecot: IMAP(x...@xxx.com): maildir: data=/var/vmail/xxx.com/support Jan 25 09:59:58 mail dovecot: IMAP(x...@xxx.com): maildir++: root=/var/vmail/xxx.com/support, index=, control=, inbox=/var/vmail/xxx.com/support Jan 25 09:59:58 mail dovecot: IMAP(x...@xxx.com): Namespace : Using permissions from /var/vmail/xxx.com/support: mode=0700 gid=-1 Jan 25 09:59:58 mail dovecot: IMAP(x...@xxx.com): Disconnected: Logged out bytes=82/573 Jan 25 09:59:58 mail dovecot: IMAP(x...@xxx.com): Disconnected: Logged out bytes=269/8243


I don't know if it makes any difference, but in your config file, try
changing:
plugin {
  quota = maildir:User Quota

to

plugin {
  quota = maildir:User quota

(lowercase the "quota")


The quota is working fine now. The problem was I had my transport agent set to virtual when it should have been set to dovecot.

Thanks.

Reply via email to