Hello,
I'm using Dovecot 2.0 with Sieve as MDA and Postfix as MTA. The
Postfix delivery command is /usr/lib/dovecot/dovecot-lda -f "$SENDER"
-a "$RECIPIENT". I have set a default quota with quota_rule =
*:storage=1G.
Some users should have a larger quota. This is defined in a ldap
directory and I have set
user_attrs =
homeDirectory=home,uidNumber=uid,gidNumber=gid,mailQuota=quota_rule=*:storage=%$.
The imap_quota plugin shows the right quota for all users but the lda
ignores the quota rule from ldap. If a user is over default quota but
not over his ldap defined quota I get the following error message:
From: Mail Delivery Subsystem <postmaster@[?]>
Your message to <[?]> was automatically rejected:
Quota exceeded (mailbox for user is full)
The log file shows the following:
Nov 30 18:21:17 [?] dovecot: lda([?]): Error: sieve:
msgid=<20111130172116.7F065A07D@[?]>: failed to store into mailbox
'INBOX': Quota exceeded (mailbox for user is full)
Nov 30 18:21:17 [?] dovecot: lda([?]): Error: sieve: script
/var/mail/[?]/dovecot.sieve failed with unsuccessful implicit keep (user logfile
/var/mail/[?]/dovecot.sieve.log may reveal additional details)
Nov 30 18:21:17 [?] dovecot: lda([?]):
msgid=<20111130172116.7F065A07D@[?]>: rejected: Quota exceeded (mailbox
for user is full)
dovecot.sieve.log:
error: msgid=<20111130172116.7F065A07D@[?]>: failed to store into mailbox
'INBOX': Quota exceeded (mailbox for user is full).
What is wrong? What must I do to getting this to work?
Thanks in advance.
Regards
Jens
doveconf -n:
# 2.0.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-xen-amd64 x86_64 Debian 6.0.3 nfs
mail_location = maildir:/var/mail/%u
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
passdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
plugin {
quota = maildir
quota_rule = *:storage=1G
sieve = /var/mail/%u/dovecot.sieve
sieve_dir = /var/mail/%u/sieve
}
protocols = " imap sieve pop3"
ssl_cert = </etc/dovecot/ssl/mail.crt
ssl_key = </etc/dovecot/ssl/mail.key
userdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
protocol imap {
mail_plugins = quota imap_quota
ssl_cert = </etc/dovecot/ssl/imap.crt
ssl_key = </etc/dovecot/ssl/imap.key
}
protocol pop3 {
ssl_cert = </etc/dovecot/ssl/pop.crt
ssl_key = </etc/dovecot/ssl/pop.key
}
protocol lda {
mail_plugins = quota sieve
}
/etc/dovecot/dovecot-ldap.conf.ext:
hosts = [?]
dn = uid[?]
dnpass = [?]
auth_bind = yes
base = [?]
user_attrs =
homeDirectory=home,uidNumber=uid,gidNumber=gid,mailQuota=quota_rule=*:storage=%$
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20111130/121b5164/attachment-0004.bin>