[Dovecot] v.1.2.4 deliver maildir quota does not work
Hi,
I'm using deliver for storing new mails (nfs). Since v.1.2 deliver does not reject mails if over quota (maildir quota).
test with v. 1.1.18: # HOME=/tmp/maildir/ /path/dovecot-1.1.18/libexec/dovecot/deliver -e -c /path/dovecot-1.1.18/etc/dovecot.conf # Quota exceeded (mailbox for user is full)
test with v. 1.2.4: # HOME=/tmp/maildir/ /path/dovecot-1.2.4/libexec/dovecot/deliver -e -c /path/dovecot-1.2.4/etc/dovecot.conf -> mail is saved to INBOX
so where is the problem? what am I doing wrong?
greets, Walter.
# cat maildirsize 250S 8399 21 46 1
log output with mail_debug = yes: deliver(User): Loading modules from directory: /path/dovecot-1.2.4/lib/dovecot/lda deliver(User): Module loaded: /path/dovecot-1.2.4/lib/dovecot/lda/lib10_quota_plugin.so deliver(User): Module loaded: /path/dovecot-1.2.4/lib/dovecot/lda/lib90_sieve_plugin.so deliver(User): Quota root: name=User quota backend=maildir args= deliver(User): Namespace: type=private, prefix=INBOX., sep=., inbox=yes, hidden=no, list=1, subscriptions=yes deliver(User): maildir: data=/tmp/maildir/:INDEX=MEMORY deliver(User): maildir++: root=/tmp/maildir, index=, control=, inbox=/tmp/maildir deliver(User): sieve: local script path /tmp/maildir/filter.sieve doesn't exist (using global script path in stead) deliver(User): sieve: user has no valid personal script deliver(User): sieve: no scripts to execute: reverting to default delivery. deliver(User): Namespace INBOX.: Using permissions from /tmp/maildir: mode=0700 gid=-1 deliver(User): msgid=: test () - saved mail to INBOX
# 1.2.4: /path/dovecot-1.2.4/etc/dovecot.conf # OS: Linux 2.6.18-92.1.22.el5 i686 CentOS release 5.2 (Final) log_timestamp: %Y-%m-%d %H:%M:%S protocols: none ssl: no verbose_proctitle: yes mail_gid: 6 mail_location: maildir:%h:INDEX=MEMORY mmap_disable: yes mail_nfs_storage: yes mail_nfs_index: yes maildir_copy_preserve_filename: yes namespace: type: private separator: . prefix: INBOX. location: maildir:%h:INDEX=MEMORY inbox: yes list: yes subscriptions: yes lda: postmaster_address: postmaster@... mail_location: maildir:%h:INDEX=MEMORY mail_plugins: quota sieve deliver_log_format: msgid=%m: %f (%s) - %$ auth default: passdb: driver: pam userdb: driver: passwd userdb: driver: static args: allow_all_users=yes gid=6 sieve=%hfilter.sieve plugin: quota: maildir:User quota sieve: %hfilter.sieve
-- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
Hi,
I'm using deliver for storing new mails (nfs). Since v.1.2 deliver does not reject mails if over quota (maildir quota).
test with v. 1.1.18: # HOME=/tmp/maildir/ /path/dovecot-1.1.18/libexec/dovecot/deliver -e -c /path/dovecot-1.1.18/etc/dovecot.conf # Quota exceeded (mailbox for user is full)
test with v. 1.2.4: # HOME=/tmp/maildir/ /path/dovecot-1.2.4/libexec/dovecot/deliver -e -c /path/dovecot-1.2.4/etc/dovecot.conf -> mail is saved to INBOX [..]
is no one using maildir quota here? Who can say me if this is a bug or not? As a workaround, is it posible to use deliver 1.1.18 and imap/pop3 1.2.4 without problems? (i think i have to rewrite some sieve 1.2 rules)
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
It seems to be working for me:
Using V 1.2.4
plugin: quota: maildir:User quota quota_rule: *:storage=2G
Mysql conf:
user_query = SELECT 5000 AS uid,5000 AS gid,'/vmail/%d/%n' as home,
concat('*:storage= ', virtual_users.quota_kb) AS
quota_rule
from virtual_users LEFT JOIN virtual_domains ON
virtual_users.domain_id=virtual_domains.id
where virtual_users.user='%n' and virtual_domains.name='%d'
Postfix Conf:
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -e -d ${recipient}
When sending a message that goes beyond quota: PostFix says: status=bounced (permission denied. Command output: Quota exceeded (mailbox for user is full) )
Regards,
M.A.
myleetlist@gmx.de wrote:
Hi,
I'm using deliver for storing new mails (nfs). Since v.1.2 deliver does not reject mails if over quota (maildir quota).
test with v. 1.1.18: # HOME=/tmp/maildir/ /path/dovecot-1.1.18/libexec/dovecot/deliver -e -c /path/dovecot-1.1.18/etc/dovecot.conf # Quota exceeded (mailbox for user is full)
test with v. 1.2.4: # HOME=/tmp/maildir/ /path/dovecot-1.2.4/libexec/dovecot/deliver -e -c /path/dovecot-1.2.4/etc/dovecot.conf -> mail is saved to INBOX
[..]
is no one using maildir quota here? Who can say me if this is a bug or not? As a workaround, is it posible to use deliver 1.1.18 and imap/pop3 1.2.4 without problems? (i think i have to rewrite some sieve 1.2 rules)
Hi, thank you for the hint
It seems to be working for me:
Using V 1.2.4
plugin: quota: maildir:User quota quota_rule: *:storage=2G
I've tried with
quota = maildir:User quota quota_rule = ?:storage=1K
and mail was rejected. but without the quota_rule it doesnt work. The Quota/Maildir docu says:
-> If you don't configure any quota limits in Dovecot (quota=maildir with no other settings), Dovecot takes the limits from the header. If the file does not exist, quota isn't enforced. <-
I think v1.2 change this behaviour and without limit it does not work anymore. My idea was not to use a quota_rule because then all mailboxes need to reindex I think. And I don't know what happens to the nfs server with 1M Mailboxes. So i wanted to enable quota slowly with the maildirsize file.
Mysql conf:
user_query = SELECT 5000 AS uid,5000 AS gid,'/vmail/%d/%n' as home,
concat('*:storage= ', virtual_users.quota_kb) AS quota_rule
from virtual_users LEFT JOIN virtual_domains ON virtual_users.domain_id=virtual_domains.id
where virtual_users.user='%n' and virtual_domains.name='%d'Postfix Conf:
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -e -d ${recipient}
When sending a message that goes beyond quota: PostFix says: status=bounced (permission denied. Command output: Quota exceeded (mailbox for user is full) )
Regards,
M.A.
myleetlist@gmx.de wrote:
Hi,
I'm using deliver for storing new mails (nfs). Since v.1.2 deliver does not reject mails if over quota (maildir quota).
test with v. 1.1.18: # HOME=/tmp/maildir/ /path/dovecot-1.1.18/libexec/dovecot/deliver -e -c /path/dovecot-1.1.18/etc/dovecot.conf # Quota exceeded (mailbox for user is full)
test with v. 1.2.4: # HOME=/tmp/maildir/ /path/dovecot-1.2.4/libexec/dovecot/deliver -e -c /path/dovecot-1.2.4/etc/dovecot.conf -> mail is saved to INBOX
[..]
is no one using maildir quota here? Who can say me if this is a bug or not? As a workaround, is it posible to use deliver 1.1.18 and imap/pop3 1.2.4 without problems? (i think i have to rewrite some sieve 1.2 rules)
-- Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
Take a look at : http://wiki.dovecot.org/Quota/1.1
M.A.
myleetlist@gmx.de wrote:
Hi, thank you for the hint
It seems to be working for me:
Using V 1.2.4
plugin: quota: maildir:User quota quota_rule: *:storage=2G
I've tried with
quota = maildir:User quota quota_rule = ?:storage=1K
and mail was rejected. but without the quota_rule it doesnt work. The Quota/Maildir docu says:
-> If you don't configure any quota limits in Dovecot (quota=maildir with no other settings), Dovecot takes the limits from the header. If the file does not exist, quota isn't enforced. <-
I think v1.2 change this behaviour and without limit it does not work anymore. My idea was not to use a quota_rule because then all mailboxes need to reindex I think. And I don't know what happens to the nfs server with 1M Mailboxes. So i wanted to enable quota slowly with the maildirsize file.
Mysql conf:
user_query = SELECT 5000 AS uid,5000 AS gid,'/vmail/%d/%n' as home,
concat('*:storage= ', virtual_users.quota_kb) AS quota_rule
from virtual_users LEFT JOIN virtual_domains ON virtual_users.domain_id=virtual_domains.id
where virtual_users.user='%n' and virtual_domains.name='%d'Postfix Conf:
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -e -d ${recipient}
When sending a message that goes beyond quota: PostFix says: status=bounced (permission denied. Command output: Quota exceeded (mailbox for user is full) )
Regards,
M.A.
myleetlist@gmx.de wrote:
Hi,
I'm using deliver for storing new mails (nfs). Since v.1.2 deliver does not reject mails if over quota (maildir
quota).
test with v. 1.1.18: # HOME=/tmp/maildir/ /path/dovecot-1.1.18/libexec/dovecot/deliver -e -c /path/dovecot-1.1.18/etc/dovecot.conf # Quota exceeded (mailbox for user is full)
test with v. 1.2.4: # HOME=/tmp/maildir/ /path/dovecot-1.2.4/libexec/dovecot/deliver -e -c /path/dovecot-1.2.4/etc/dovecot.conf -> mail is saved to INBOX
[..]
is no one using maildir quota here? Who can say me if this is a bug or
not?
As a workaround, is it posible to use deliver 1.1.18 and imap/pop3 1.2.4
without problems? (i think i have to rewrite some sieve 1.2 rules)
Take a look at : http://wiki.dovecot.org/Quota/1.1
M.A.
sorry I don't know what you mean on this site. The wiki link is for dovecot 1.1 also - and with 1.1.18 there is no problem.
I need a way to use quota only with the maildirsize file without the dovecot quota_limit fallback.
Timo, is it correct that this feature is not in 1.2.4 anymore?
myleetlist@gmx.de wrote:
Hi, thank you for the hint
It seems to be working for me:
Using V 1.2.4
plugin: quota: maildir:User quota quota_rule: *:storage=2G
I've tried with
quota = maildir:User quota quota_rule = ?:storage=1K
and mail was rejected. but without the quota_rule it doesnt work. The Quota/Maildir docu says:
-> If you don't configure any quota limits in Dovecot (quota=maildir with no other settings), Dovecot takes the limits from the header. If the file does not exist, quota isn't enforced. <-
I think v1.2 change this behaviour and without limit it does not work anymore. My idea was not to use a quota_rule because then all mailboxes need to reindex I think. And I don't know what happens to the nfs server with 1M Mailboxes. So i wanted to enable quota slowly with the maildirsize file.
Mysql conf:
user_query = SELECT 5000 AS uid,5000 AS gid,'/vmail/%d/%n' as home,
concat('*:storage= ', virtual_users.quota_kb) AS quota_rule
from virtual_users LEFT JOIN virtual_domains ON virtual_users.domain_id=virtual_domains.id
where virtual_users.user='%n' and virtual_domains.name='%d'Postfix Conf:
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -e -d ${recipient}
When sending a message that goes beyond quota: PostFix says: status=bounced (permission denied. Command output: Quota exceeded (mailbox for user is full) )
Regards,
M.A.
myleetlist@gmx.de wrote:
Hi,
I'm using deliver for storing new mails (nfs). Since v.1.2 deliver does not reject mails if over quota (maildir
quota).
test with v. 1.1.18: # HOME=/tmp/maildir/ /path/dovecot-1.1.18/libexec/dovecot/deliver -e -c /path/dovecot-1.1.18/etc/dovecot.conf # Quota exceeded (mailbox for user is full)
test with v. 1.2.4: # HOME=/tmp/maildir/ /path/dovecot-1.2.4/libexec/dovecot/deliver -e -c /path/dovecot-1.2.4/etc/dovecot.conf -> mail is saved to INBOX
[..]
is no one using maildir quota here? Who can say me if this is a bug or
not?
As a workaround, is it posible to use deliver 1.1.18 and imap/pop3 1.2.4
without problems? (i think i have to rewrite some sieve 1.2 rules)
-- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
On Sat, 2009-09-12 at 18:48 +0200, myleetlist@gmx.de wrote:
quota = maildir:User quota quota_rule = ?:storage=1K
and mail was rejected. but without the quota_rule it doesnt work.
participants (3)
-
Mario Antonio
-
myleetlist@gmx.de
-
Timo Sirainen