[Dovecot] Quota has none effect

Jim Knuth jk at jkart.de
Mon Apr 4 14:31:54 EEST 2011


am 04.04.11 12:55 schrieb Timo Sirainen <tss at iki.fi>:

> On Mon, 2011-04-04 at 11:22 +0200, Joseba Torre wrote:
>> On Monday 04 April 2011 11:01:40 Jim Knuth wrote:
>>> sorry, but that`s IMHO not right. Take a look at
>>> $mail_plugins. There is also defined quota
>>
>> In your dovecot -n output mail_plugins are only defined inside the protocol
>> parts. So, when inside protocol lda you write
>>
>> mail_plugins = $mail_plugins sieve
>>
>> $mail_plugins is empty.
>>
>> Again, try setting it in 10-mail.conf and check if it solves your issue.
>
> This would have been obvious if he had shown dovecot -n output (and
> looked at it) instead of copy&pasting the config file..
>
>

OK, sorry. This is the same like postconf-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
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = *
login_greeting = Mailserver ready.
mail_location = maildir:~/Maildir
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
}
plugin {
   autocreate = Entwurf
   autocreate2 = Spam
   autosubscribe = Entwurf
   autosubscribe2 = Spam
   quota = maildir:User quota
   quota_rule = *:storage=700M
   quota_warning = storage=95%% quota-warning 95 %u
   quota_warning2 = storage=75%% quota-warning 75 %u
   sieve_before = /etc/dovecot/sieve/global/global.sieve
   sieve_dir = %h/sieve
   sieve_global_dir = /etc/dovecot/sieve/global/
   sieve_global_path = /etc/dovecot/sieve/global/global.sieve
   trash = /etc/dovecot/dovecot-trash.conf.ext
}
protocols = imap pop3 sieve
service auth {
   unix_listener /var/spool/postfix/private/auth {
     group = postfix
     mode = 0660
     user = postfix
   }
   unix_listener auth-master {
     mode = 0600
   }
}
service imap-login {
   client_limit = 128
   process_limit = 256
   service_count = 0
   vsz_limit = 64 M
}
service managesieve-login {
   inet_listener sieve {
     port = 4190
   }
   service_count = 1
   vsz_limit = 64 M
}
service pop3-login {
   client_limit = 128
   process_limit = 256
   service_count = 0
   vsz_limit = 64 M
}
service quota-warning {
   executable = script /usr/sbin/quota-warning.sh
   unix_listener quota-warning {
     user = vmail
   }
   user = dovecot
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
   args = /etc/dovecot/passwd.quota
   driver = passwd-file
}
verbose_proctitle = yes
protocol sieve {
   mail_max_userip_connections = 10
   managesieve_implementation_string = Dovecot Pigeonhole
   managesieve_logout_format = bytes=%i/%o
   managesieve_max_compile_errors = 5
   managesieve_max_line_length = 65536
}
protocol imap {
   imap_client_workarounds =
   mail_fsync = never
   mail_plugins = autocreate quota imap_quota trash
}
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 = " quota sieve"
   postmaster_address = postmaster at art-domains.de
}
protocol lmtp {
   mail_plugins = " quota sieve"
}


-- 
Mit freundlichen Grüßen,
Jim Knuth

P.S.: Bitte HTML-Mails!
Zufallszitat:
Die größte Kunst, die man im Leben lernen muß, ist
die Wiedergutmachung von Irrtümern. Eines der Mittel
ist, sie einzugestehen. (Hermann Melville)


More information about the dovecot mailing list