[Dovecot] lmtp_rcpt_check_quota not working

Bernhard Schmidt berni at birkenwald.de
Tue Feb 11 07:34:29 UTC 2014


Hi,

Dovecot 2.2.9 (Debian package from backports) does not seem to respect
lmtp_rcpt_check_quota

# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 
deliver_log_format = from=<%e>, size=%p, message-id=<%m>, status=%$
disable_plaintext_auth = no
lmtp_rcpt_check_quota = yes
mail_debug = yes
mail_gid = mstore
mail_location = maildir:~/Maildir:INDEX=/var/cache/dovecot/index/%-1.1u/%u
mail_plugins = quota
mail_uid = mstore
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
mmap_disable = yes
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Junk {
    auto = subscribe
    special_use = \Junk
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  prefix = INBOX.
  separator = .
  type = private
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
plugin {
  quota = maildir
  quota_rule = ?:storage=512M
  quota_rule2 = INBOX.Trash:ignore
  quota_status_nouser = DUNNO
  quota_status_overquota = 452 4.2.2 Mailbox is full
  quota_status_success = DUNNO
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=85%% quota-warning 85 %u
  sieve = ~/currently-active-script.sieve
  sieve_dir = ~/sieve
}
pop3_uidl_format = %08Xv%08Xu
protocols = imap lmtp sieve pop3
quota_full_tempfail = yes
service anvil {
  client_limit = 3000
  unix_listener anvil {
    group = sudo
    mode = 0660
  }
}
service auth {
  client_limit = 3000
  unix_listener auth-userdb {
    group = mstore
    mode = 0660
    user = mstore
  }
}
service imap-login {
  client_limit = 1024
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
  process_limit = 2500
  process_min_avail = 4
  service_count = 0
}
service lmtp {
  inet_listener lmtp {
    address = xxx
    port = 24
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 2000
  }
  service_count = 1
}
service managesieve {
  process_limit = 1024
}
service pop3-login {
  inet_listener pop3 {
    port = 110
  }
  inet_listener pop3s {
    port = 995
    ssl = yes
  }
}
service quota-status {
  client_limit = 5
  executable = quota-status -p postfix
  inet_listener {
    address = xxx
    port = 12340
  }
}
service quota-warning {
  executable = script /etc/dovecot/quotawarnmsg.sh
  unix_listener quota-warning {
    user = mstore
  }
  user = mstore
}
ssl_cert = </etc/dovecot/dovecot.pem
ssl_key = </etc/dovecot/private/dovecot.pem
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
verbose_proctitle = yes
protocol imap {
  mail_plugins = quota imap_quota imap_zlib
}
protocol lda {
  mail_plugins = quota sieve
}
protocol lmtp {
  mail_plugins = quota sieve
}

so Dovecot should reject in RCPT TO phase, but according to the logs of the 
upstream Postfix it does so after END-OF-DATA

(host xxx[2001:xxx] said: 452 4.2.2
<user at domain.de> Quota exceeded (mailbox for user is
full) (in reply to end of DATA command))

I haven't seen any commits regarding to this in 2.2.10 or tip.

Regards,
Bernhard



More information about the dovecot mailing list