[Dovecot] IMAP copy fails because the mailbox size of user1 is exceeding the quota limit of user2??
Hi all, I do have a mailbox-quota problem in dovecot 2.0.19 that is beond my understanding. Could someone pls. give me a hint.
- user1 max. mailbox quota is set to 1GB, the current mailbox size of user1 is 15MB
- user2 max. mailbox quota is set to 10MB, the current mailbox size of user1 is 10kB
- user1 shares the folder 'shared_folder' to user2 with all rights (read, write ...)
- user2 has subscribed to 'shared_folder'
the problem:
- user2 tries to move a mail (20kB) to the shared folder via telnet: ". copy 1:1 shared/user1/shared_folder"
- it fails with: "NO [OVERQUOTA] Quota exceeded (mailbox for user is full)"
- copying the same mail to a local folder of user2 works without problems.
- After I raised the max. mailbox quota of user2 from 10MB to 16MB it was possible to move the mail to the 'shared_folder' of user1.
It looks like the copy operation fails because the mailbox size of user1 is exceeding the quota limit of user2! Is this possible? Is this a bug? Do I have a configuration problem?
dovecot -n # 2.0.19: /etc/dovecot/dovecot.conf # OS: Linux 3.5.0-51-generic x86_64 Ubuntu 12.04.4 LTS ext4 auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login auth_verbose = yes dict { sqldomainquota = mysql:/etc/dovecot/dovecot-sql-domain.conf sqluserquota = mysql:/etc/dovecot/dovecot-dict-sql-user.conf } first_valid_uid = 150 last_valid_uid = 150 mail_debug = yes mail_gid = mail mail_location = maildir:/var/vmail/%d/%n mail_plugins = " quota quota acl" mail_uid = vmail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacati on subaddress comparator-i;ascii-numeric relational regex imap4flags copy includ e variables body enotify environment mailbox date ihave namespace { inbox = yes location = prefix = separator = / type = private } namespace { list = children location = maildir:/var/vmail/mydomain.de/%%n:CONTROL=/var/vmail/mydomain.de/%n/ shared/%%n:INDEX=/var/vmail/mydomain.de/%n/shared/%%n prefix = shared/%%n/ separator = / subscriptions = yes type = shared } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { acl = vfile acl_shared_dict = file:/var/lib/dovecot/shared-mailboxes.db quota = dict:User quota::proxy::sqluserquota quota_rule2 = shared:ignore sieve = ~/_dovecot_sieve sieve_dir = ~/sieve } postmaster_address = kontakt@mydomain.de protocols = imap pop3 sieve service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener /var/spool/postfix/private/dovecot-auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = mail mode = 0600 user = vmail } } service dict { unix_listener dict { mode = 0600 user = vmail } } ssl_cert = was automatically rejected:%n%r }
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 4 Jun 2014, Katja Wegner wrote:
Date: Wed, 4 Jun 2014 16:21:04 +0200 From: Katja Wegner katja.wegner92@web.de To: dovecot@dovecot.org Subject: [Dovecot] IMAP copy fails because the mailbox size of user1 is exceeding the quota limit of user2??
Hi all, I do have a mailbox-quota problem in dovecot 2.0.19 that is beond my understanding. Could someone pls. give me a hint.
- user1 max. mailbox quota is set to 1GB, the current mailbox size of user1 is 15MB
- user2 max. mailbox quota is set to 10MB, the current mailbox size of user1 is 10kB
- user1 shares the folder 'shared_folder' to user2 with all rights (read, write ...)
- user2 has subscribed to 'shared_folder'
the problem:
- user2 tries to move a mail (20kB) to the shared folder via telnet: ". copy 1:1 shared/user1/shared_folder"
- it fails with: "NO [OVERQUOTA] Quota exceeded (mailbox for user is full)"
- copying the same mail to a local folder of user2 works without problems.
- After I raised the max. mailbox quota of user2 from 10MB to 16MB it was possible to move the mail to the 'shared_folder' of user1.
See my message "quota using wrong limits in user shared mailboxes" from 13 Mar 2014 10:59:23.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBU5BUSHz1H7kL/d9rAQKSZQf+I7e5kHxuxeEDA+doD5IIBcPtLA9y7Mso Xtky/+2iFU1A3j3TuhApYK7p9Pasuz8riQX+KM1ecdS73BIjcalfCgxVVZ5/I/55 /ycp9SlXdAA9qMsBFKH2pW9UQ2/MJ5Ddt1dpr8d4GgKk1AKjX/2oE4UbS/dZ8nI3 SzBZOVt336gH3mFwLTubAJYXFscxc6e02cavi7Jaovf4mucc0o+KSfXOgPV0W708 B+uHs1ZyzCbNDxtsmjuj2AZnbdhF8sdnRESQAU12suBIDbfEgFCH+74uWK+PICG/ Jxghgye5nS3GH2rHU4qftib8suNBKkMgR2Q+9KCbX3RHgUd5s3Dq8w== =tQ0j -----END PGP SIGNATURE-----
See my message "quota using wrong limits in user shared mailboxes" from 13 Mar 2014 10:59:23.
Thank's for your answer Steffen. So I can confirm that I've the same problem as you. Could you find a solution to that? I still hope that this is a simple configuration problem, as I can't imagine, that we've been the first to experience that strange behavior that for me, is part of the core functionality of dovecot.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 5 Jun 2014, Katja Wegner wrote:
See my message "quota using wrong limits in user shared mailboxes" from 13 Mar 2014 10:59:23.
Thank's for your answer Steffen. So I can confirm that I've the same problem as you. Could you find a solution to that? I still hope that this is a simple configuration problem, as I can't imagine, that we've been the first to experience that strange behavior that for me, is part of the core functionality of dovecot.
Well, the only configuration I can imagine is some combination of http://wiki2.dovecot.org/Quota/Configuration#Quota_for_public_namespaces "Quota for public namespaces" and with the namespace prefix of the shared namespace, users.%%u. in my case, e.g.:
namespace { type = shared separator = . prefix = users.%%u. ... }
plugin { # Dict quota quota = dict:User quota::proxy::quota quota2 = dict:Shared quota:%%u:ns=users.%%u.:proxy::quota ... }
Duplicate all quota_rule## to quota2_rule##. If the dict processor also honors the %%u - which I doubt -, you still need exact the same quota rules for the share namespace "quota2" as for "quota".
But I never tried it and it does not look correct.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBU5B+/nz1H7kL/d9rAQL25Af8C7qQtJud+fqlGiDzXsayAZsDDXa3fbW1 rHWeGWBkUgfLR+eTg5KFpWkqoDVEFNN8CFJXfsKpOS9fveftf59DtGYmy8ydyKy9 nKIzpoSeTVA1JARCfgOn9Dx6k1+K1H0Mj8hEecNFRHJotAmaTq2ZyZwzS1doRPNj pCQ5Y8hADhri8lP7GlyR8i89jS5FlBbqdyUOPlOL1n61fjj/3Xke1d26kr2K62Ia DWwHoEd20JnfKyVd5f/ixn1IwLKlP3xdsObSlCeIIEbBDwQmTjm+HZJg0EADf356 kwr7FdEp0HXpPTdqPtJUY5M28rb0nWD3JcH4Mv86Aad3JU9khtnotw== =xncc -----END PGP SIGNATURE-----
participants (2)
-
Katja Wegner
-
Steffen Kaiser