Palatine Web Support
2012-Jan-24 16:35 UTC
[Dovecot] Imap Quota Exceeded - But Still Receiving Emails?
Hello I am trying to setup dovecot maildir quota, but even though it seems to be working fine, I am still receiving emails into my inbox even though I have exceeded my quota. Here is my dovecot config: plugin { quota = maildir:User Quota quota_rule2 = Trash:storage=+100M } And my SQL config file for Dovecot (dovecot-sql.conf): user_query = SELECT '/var/vmail/%d/%n' as home, 'maildir:/var/vmail/%d/%n' as mail, 150 AS uid, 8 AS gid, CONCAT('*:storage=', quota) AS quota_rule FROM mailbox WHERE username = '%u' AND active = '1' CONCAT('*:storage=', quota) AS quota_rule quota_rule = *:storage=3M So it picks up my set quota of 3MB but dovecot is not rejecting emails if I am over my quota. Can anyone help? Thanks. Carl
Daniel L. Miller
2012-Jan-25 05:38 UTC
[Dovecot] Imap Quota Exceeded - But Still Receiving Emails?
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 -- Daniel
Daniel L. Miller
2012-Jan-25 16:55 UTC
[Dovecot] Imap Quota Exceeded - But Still Receiving Emails?
On 1/25/2012 1:39 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 > > Hi Daniel > > I tried the command and it returned the command was not found. I have > installed: > > apt-get install dovecot-common > apt-get install dovecot-dev > apt-get install dovecot-imapd > > > Which package does the binary doveconf come from?You need to make sure to reply to the list - not just to me. If you don't have doveconf...what version of Dovecot are you using? -- Daniel
Daniel L. Miller
2012-Jan-25 17:01 UTC
[Dovecot] Imap Quota Exceeded - But Still Receiving Emails?
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(xxx at xxx.com): Loading modules from > directory: /usr/lib/dovecot/modules/imap > Jan 25 09:59:58 mail dovecot: IMAP(xxx at xxx.com): Module loaded: > /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so > Jan 25 09:59:58 mail dovecot: IMAP(xxx at xxx.com): Module loaded: > /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so > Jan 25 09:59:58 mail dovecot: IMAP(xxx at xxx.com): Effective uid=150, > gid=8, home=/var/vmail/xxx.com/support > Jan 25 09:59:58 mail dovecot: IMAP(xxx at xxx.com): Quota root: name=User > Quota backend=dirsize args> Jan 25 09:59:58 mail dovecot: IMAP(xxx at xxx.com): Quota rule: root=User > Quota mailbox=* bytes=3145728 messages=0 > Jan 25 09:59:58 mail dovecot: IMAP(xxx at xxx.com): Quota rule: root=User > Quota mailbox=Trash bytes=104857600 messages=0 > Jan 25 09:59:58 mail dovecot: IMAP(xxx at xxx.com): maildir: > data=/var/vmail/xxx.com/support > Jan 25 09:59:58 mail dovecot: IMAP(xxx at 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(xxx at xxx.com): Namespace : Using > permissions from /var/vmail/xxx.com/support: mode=0700 gid=-1 > Jan 25 09:59:58 mail dovecot: IMAP(xxx at xxx.com): Disconnected: Logged > out bytes=82/573 > Jan 25 09:59:58 mail dovecot: IMAP(xxx at 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") -- Daniel