Hello, 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? # 2.0.11 (0ce50c22f84c): /etc/dovecot/dovecot.conf # OS: Linux 2.6.29.4 i686 Debian wheezy/sid -- Mit freundlichen Gr??en, Jim Knuth P.S.: Bitte HTML-Mails! Zufallszitat: Ist das Leben nicht hundert Mal zu kurz, sich in ihm - zu langweilen? [Nietzsche]
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. -- Sig lost. Core dumped.
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]
Jim Knuth <jk at jkart.de> wrote:> 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.> ok, understand. dovecot -n[snip] And how does your MTA deliver new mails to the users Maildir? Do you use dovecot-lda or something else? Gr??e, S! -- Sig lost. Core dumped.
am 03.04.11 18:30 schrieb Sven Hartge <sven at svenhartge.de>:> Jim Knuth<jk at jkart.de> wrote: >> 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. > >> ok, understand. dovecot -n > > [snip] > > And how does your MTA deliver new mails to the users Maildir? Do you use > dovecot-lda or something else?yes. mailbox_command = /usr/lib/dovecot/deliver -a "$RECIPIENT" Note: deliver is a symlink of dovecot-lda. But you will know this ;)> > Gr??e, > S! >-- Mit freundlichen Gr??en, Jim Knuth P.S.: Bitte HTML-Mails! Zufallszitat: Aller grosse L?rm macht, dass wir das Gl?ck in die Stille und Ferne setzen. [Nietzsche]
On 3.4.2011, at 17.48, Jim Knuth 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?Set mail_debug=yes and show logs about a mail delivery that should have been rejected.
am 04.04.11 06:33 schrieb Timo Sirainen <tss at iki.fi>:> On 3.4.2011, at 17.48, Jim Knuth 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? > > Set mail_debug=yes and show logs about a mail delivery that should have been rejected. >I`ve had that already done. No rejects about this user. He get incoming mail and can send. :-/ Any ideas greatly appreciated. Thanks -- Mit freundlichen Gr??en, Jim Knuth P.S.: Bitte HTML-Mails! Zufallszitat: Die meisten Menschen sind bereit zu lernen, aber nur die wenigsten, sich belehren zu lassen. [Churchill]
am 04.04.11 11:22 schrieb Joseba Torre <joseba.torre at ehu.es>:> 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.ok, thank you. I`ll try this out. -- Mit freundlichen Gr??en, Jim Knuth P.S.: Bitte HTML-Mails! Zufallszitat: Ein verliebter Mann ist so lange unfertig, bis er heiratet. Dann allerdings ist er fertig! [Zsa Zsa Gabor]
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..
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)
am 04.04.11 15:13 schrieb Timo Sirainen <tss at iki.fi>:> On Mon, 2011-04-04 at 14:58 +0200, Jim Knuth wrote: > >> no rejects with that config above. >> Just a mail has arrived for the user .. > > So what do the logs say with mail_debug=yes? > >which piece do you mean? Arriving mail or sent mail? Or IMAP Login? -- Mit freundlichen Gr??en, Jim Knuth P.S.: Bitte HTML-Mails! Zufallszitat: Ich w?rde nur an einen Gott glauben, der zu tanzen verst?nde. [Nietzsche]
On Mon, 2011-04-04 at 16:01 +0200, Jim Knuth wrote:> am 04.04.11 15:13 schrieb Timo Sirainen <tss at iki.fi>: > > > On Mon, 2011-04-04 at 14:58 +0200, Jim Knuth wrote: > > > >> no rejects with that config above. > >> Just a mail has arrived for the user .. > > > > So what do the logs say with mail_debug=yes? > > > > > > which piece do you mean? > Arriving mail or sent mail? > Or IMAP Login?Logs from dovecot-lda when a mail is delivered to a user who is over quota. You should at minimum have something like: lda(user): Info: msgid=<foo at bar>: saved mail to INBOX With mail_debug=yes there should be lots more.