Here is a session logged with mail_debug=yes; the mailbox has already exceeded quota (I set it to 100K for testing). Note that I have only changed IP addresses (actual ones are public) and main domain name:

Feb 22 23:02:31 vmail dovecot: POP3(tester): Disconnected: Logged out top=0/0, retr=1/829, del=1/1, size=813 Feb 22 23:02:35 vmail dovecot: POP3(tester): Loading modules from directory: /usr/lib64/dovecot/pop3 Feb 22 23:02:35 vmail dovecot: POP3(tester): Module loaded: /usr/lib64/dovecot/pop3/lib10_quota_plugin.so Feb 22 23:02:35 vmail dovecot: POP3(tester): Effective uid=500, gid=500, home=/home/vmail/tester Feb 22 23:02:35 vmail dovecot: POP3(tester): Quota root: name=User quota backend=maildir args= Feb 22 23:02:35 vmail dovecot: POP3(tester): Quota rule: root=User quota mailbox=* bytes=102400 messages=0 Feb 22 23:02:35 vmail dovecot: POP3(tester): Quota rule: root=User quota mailbox=Trash bytes=104857600 messages=0 Feb 22 23:02:35 vmail dovecot: POP3(tester): Quota warning: bytes=76800 (75%) messages=0 command=/opt/mail.sh 75 tester Feb 22 23:02:35 vmail dovecot: POP3(tester): Quota warning: bytes=92160 (90%) messages=0 command=/opt/mail.sh 90 tester
Feb 22 23:02:35 vmail dovecot: POP3(tester): maildir: data=~/Maildir/
Feb 22 23:02:35 vmail dovecot: POP3(tester): maildir++: root=/home/vmail/tester/Maildir, index=, control=, inbox=/home/vmail/tester/Maildir Feb 22 23:02:35 vmail dovecot: POP3(tester): Namespace : Using permissions from /home/vmail/tester/Maildir: mode=0700 gid=-1 Feb 22 23:02:35 vmail dovecot: pop3-login: Login: user=<tester>, method=PLAIN, rip=10.10.11.105, lip=10.10.11.100 Feb 22 23:02:38 vmail dovecot: POP3(tester): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0

No warning mail was sent, at any point, even when the last mail was received, which exceeded the quota.

   # ls -la /home/vmail/tester/Maildir/new
   total 232
   drwx------ 2 vmail vmail  12288 Feb 22 23:07 .
   drwx------ 8 vmail vmail   4096 Feb 22 23:02 ..
   -rw------- 1 vmail vmail   4397 Feb 22 23:03
   1298408628.Vfc00I2e34701M573894.vmail.example.com
   -rw------- 1 vmail vmail  13433 Feb 22 23:04
   1298408654.Vfc00I2e34702M745961.vmail.example.com
   -rw------- 1 vmail vmail  12621 Feb 22 23:05
   1298408714.Vfc00I2e34703M525546.vmail.example.com
   -rw------- 1 vmail vmail 174648 Feb 22 23:07
   1298408854.Vfc00I2e34704M818941.vmail.example.com

And also:

   # cat /home/vmail/tester/Maildir/maildirsize
   102400S
   0 0

Could this behavior be related to the MTA? Must we also configure quotas in Postfix (with VDA) for things to run correctly? (Note that I am forced to set (in Postfix) virtual_mailbox_limit = 0, because the max acceptable value of this parameter is 2G and in Dovecot I define mailbox limits of 4G. I haven't yet set any VDA parameters.)

Thanks,
Nick


On 22/2/2011 6:23 μμ, Timo Sirainen wrote:
Locking? You mean it allowed user to exceed quota? mail_debug=yes could log something useful about what's going on.

Reply via email to