[Dovecot] Quota has none effect

Jim Knuth jk at jkart.de
Sun Apr 3 19:23:37 EEST 2011


am 03.04.11 17:13 schrieb Sven Hartge <sven at svenhartge.de>:

> Jim Knuth<jk at jkart.de>  wrote:
>
>> I have a user who has 153600 kBytes max. storage space.  Now, however,
>> he has used already 167396 kBytes and he can receive e-mails and can
>> send.  How can this be?
>
> Your configuration is wrong?
>
> Sorry, without any further information there is not much else to say.
>
> Grüße,
> Sven.
>

ok, understand. dovecot -n

# 2.0.11 (0ce50c22f84c): /etc/dovecot/dovecot.conf
# OS: Linux 2.6.29.4 i686 Debian wheezy/sid
auth_master_user_separator = *
auth_mechanisms = plain login
auth_verbose = yes
disable_plaintext_auth = no
listen = *
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
login_greeting = Mailserver ready.
mail_location = maildir:~/Maildir

verbose_proctitle = yes

managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope 
encoded-character vacation subaddress comparator-i;ascii-numeric 
relational regex imap4flags copy include variables body enotify 
environment mailbox date

passdb {
   driver = pam
}

userdb {
   driver = passwd-file
   args = /etc/dovecot/passwd.quota
}

plugin/autocreate = Entwurf
plugin/autocreate2 = Spam
plugin/autosubscribe = Entwurf
plugin/autosubscribe2 = Spam
plugin/sieve_dir = %h/sieve
plugin/sieve_global_path = /etc/dovecot/sieve/global/global.sieve
plugin/sieve_global_dir = /etc/dovecot/sieve/global/
protocols = imap pop3 sieve

service managesieve-login {
   inet_listener sieve {
     port = 4190
   }

   service_count = 1
   vsz_limit = 64M
}

service managesieve {
}

protocol sieve {
   managesieve_max_line_length = 65536
   mail_max_userip_connections = 10
   managesieve_logout_format = bytes=%i/%o
   managesieve_implementation_string = Dovecot Pigeonhole
   managesieve_max_compile_errors = 5

}

service auth {
   unix_listener /var/spool/postfix/private/auth {
     group = postfix
     mode = 0660
     user = postfix
   }
   unix_listener auth-master {
     mode = 0600
   }
}

plugin {
      quota = maildir:User quota
}

plugin {
   quota_rule = *:storage=700M
}

plugin {
   quota_warning = storage=95%% quota-warning 95 %u
   quota_warning2 = storage=75%% quota-warning 75 %u
}

service quota-warning {
       executable = script /usr/sbin/quota-warning.sh
       user = root
unix_listener quota-warning {
       user = root
            }
}

plugin {

    sieve_before = /etc/dovecot/sieve/global/global.sieve

}

service imap-login {
   client_limit = 128
   process_limit = 256
   service_count = 0
   vsz_limit = 64 M
}

service pop3-login {
   client_limit = 128
   process_limit = 256
   service_count = 0
   vsz_limit = 64 M
}

protocol imap {
   imap_client_workarounds =
   mail_fsync = never
   mail_plugins = autocreate quota imap_quota trash
}

plugin {
   trash = /etc/dovecot/dovecot-trash.conf.ext
}

protocol pop3 {
   mail_fsync = never
   mail_plugins = quota trash
   pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
   pop3_lock_session = yes
   pop3_uidl_format = %v-%u
}

protocol lda {
   mail_fsync = optimized
   mail_plugins = $mail_plugins sieve
   postmaster_address = postmaster at art-domains.de
}

protocol lmtp {
   mail_plugins = $mail_plugins sieve
}

ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem


and in passwd.quota:

webxp1:x:1174:5000::/home/mail/web6p1::userdb_mail=maildir:~/Maildir 
userdb_quota_rule=*:bytes=150M

-- 
Mit freundlichen Grüßen,
Jim Knuth

P.S.: Bitte HTML-Mails!
Zufallszitat:
auch das geringste Schaffen steht höher als das Reden
über Geschaffenes. [Nietzsche]


More information about the dovecot mailing list