[Dovecot] loop when I enable

Andreas Meyer anmeyer at anup.de
Thu Mar 21 16:55:46 EET 2013


Hello!

I have a nasty problem with a loop when I enable quota_warning. The
mailbox fills up with thousands of email within seconds. This happens
only with mbox'es retrieved with POP3.

From MAILER-DAEMON  Thu Mar 21 13:54:07 2013 
From: support at anup.de 
Subject: Mailbox Quota-Warnung 
X-UID: 8036 
Status:  
X-Keywords:
Content-Length: 41 
 
Ihre Mailbox ist jetzt zu below% belegt.

# doveconf -n

# 2.1.7: /usr/etc/dovecot/dovecot.conf

auth_mechanisms = plain cram-md5
auth_verbose = yes
disable_plaintext_auth = no
hostname = delta.bitcorner.eu
log_path = /var/log/dovecot1
mail_home = /var/spool/vhosts/%d/%n
mail_plugins = quota
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 ihave vacation-seconds
namespace inbox {
  inbox = yes
  location = 
  prefix = 
}
passdb {
  args = /etc/dovecot/passwd
  driver = passwd-file
}
plugin {
  autocreate = Trash
  autocreate2 = Drafts
  autocreate3 = Sent
  autosubscribe = Trash
  autosubscribe2 = Drafts
  autosubscribe3 = Sent
  quota = maildir:User quota
  quota_rule = *:storage=500MB
  quota_rule2 = Trash:storage=+10%%
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/.sieve
  sieve_extensions = +vacation-seconds
  sieve_vacation_default_period = 10d
  sieve_vacation_max_period = 30d
  sieve_vacation_min_period = 1h
}
postmaster_address = postmaster at bitcorner.de
protocols = imap pop3 lmtp sieve
quota_full_tempfail = yes
service auth {
  unix_listener auth-userdb {
    group = vmail
    mode = 0666
    user = vmail
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
    mode = 0666
    user = vmail
  }
  user = vmail
}
ssl_cert = </etc/dovecot/ssl/hostcert.pem
ssl_key = </etc/dovecot/ssl/hostkey.pem
userdb {
  args = /etc/dovecot/passwd
  driver = passwd-file
}
protocol lda {
  info_log_path = /var/log/dovecot-lda.log
  log_path = /var/log/dovecot-lda-errors.log
  mail_plugins = quota quota sieve
}
protocol imap {
  imap_idle_notify_interval = 29 mins
  mail_max_userip_connections = 20
  mail_plugins = quota quota imap_quota autocreate
}
protocol lmtp {
  mail_plugins = quota sieve
}
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 pop3 {
  mail_max_userip_connections = 10
  mail_plugins = quota quota
  pop3_uidl_format = %08Xu%08Xv
}

The problem occurs when I add the following to dovecot.conf:

quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
quota_warning3 = -storage=100%% quota-warning below %u # user is no longer over quota

The script executed looks like this:

#!/bin/sh
PERCENT=$1
USER=$2
cat << EOF | /usr/libexec/dovecot/dovecot-lda -d $USER -o "plugin/quota=maildir:User quota:noenforcing"
From: support at anup.de
Subject: Mailbox Quota-Warnung

Ihre Mailbox ist jetzt zu $PERCENT% belegt.
EOF

What can I do? I wonder if there some solution with namespaces possible maybe?

Thank you!

  Andreas


More information about the dovecot mailing list