[Dovecot] IMAP copy fails because the mailbox size of user1 is exceeding the quota limit of user2??

Katja Wegner katja.wegner92 at web.de
Wed Jun 4 14:21:04 UTC 2014


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 at 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 = </etc/ssl/certs/dovecot.pem
ssl_cipher_list = ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MED                                                                                                             IUM
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
protocol imap {
  imap_client_workarounds = delay-newmail
  mail_max_userip_connections = 10
  mail_plugins = " quota imap_quota imap_quota acl imap_acl"
}
protocol pop3 {
  mail_max_userip_connections = 10
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
protocol lda {
  deliver_log_format = msgid=%m: %$
  mail_plugins = acl
  postmaster_address = postmaster
  quota_full_tempfail = yes
  rejection_reason = Your message to <%t> was automatically rejected:%n%r
}


More information about the dovecot mailing list