[Dovecot] Maildir quota's
Hey,
is
http://www.dovecot.org/patches/1.0/quota.tar.gz
supposed to work with maildir quota's for virtual mailboxes? Using it with dovecot-lda (cvs) results in DSN
Your message was automatically rejected by Sieve, a mail filtering language.
The following reason was given: Internal quota calculation error
Thanks,
Lieven
On Sun, 2005-09-18 at 18:08 +0200, Lieven Van Acker wrote:
Hey,
is
http://www.dovecot.org/patches/1.0/quota.tar.gz
supposed to work with maildir quota's for virtual mailboxes?
It should work, but it's not necessarily a good idea since it works by stat()ing all files found in a given directory and with maildir that's slow since there are a lot of files. Proper maildir quota support will come later..
Using it with dovecot-lda (cvs) results in DSN
Your message was automatically rejected by Sieve, a mail filtering language.
The following reason was given: Internal quota calculation error
What do the logs say? Set use_syslog=yes in dovecot-deliver.conf if you don't see anything in MTA's logs. Dovecot should then log to /var/log/mail.log or something.
dovecot-deliver.conf: ... use_syslog = yes ...
mail.log:
Sep 24 09:58:06 elisa deliver: entered bc_action_emit with filelen: 16 Sep 24 09:58:06 elisa deliver: entered bc_action_emit with filelen: 60 Sep 24 09:58:06 elisa deliver: entered bc_action_emit with filelen: 84 Sep 24 09:58:06 elisa deliver: entered bc_action_emit with filelen: 160 Sep 24 09:58:06 elisa deliver: entered bc_action_emit with filelen: 184 Sep 24 09:58:06 elisa deliver: entered bc_action_emit with filelen: 260 Sep 24 09:58:06 elisa postfix/pipe[26732]: 637F81BA0B: to=lievacke@elisa.ugent.be, orig_to=MAILER-DAEMON@elisa.UGent.be, relay=dovecot, delay=4, status=sent (elisa.ugent.be) Sep 24 09:58:06 elisa postfix/qmgr[26728]: 637F81BA0B: removed Sep 24 09:58:06 elisa deliver: sieve runtime error for lievacke@elisa.ugent.be: Keep: Generic Error Sep 24 09:58:06 elisa postfix/qmgr[26728]: A95651BA09: from=<>, size=1723, nrcpt=1 (queue active) Sep 24 09:58:06 elisa postfix/pickup[26727]: CE50F1BA0B: uid=911 from=<> Sep 24 09:58:06 elisa postfix/cleanup[26806]: CE50F1BA0B: message-id=cmu-sieve-26851-1127548685-0@elisa Sep 24 09:58:06 elisa deliver: entered bc_action_emit with filelen: 16 Sep 24 09:58:06 elisa deliver: entered bc_action_emit with filelen: 60
dsn: Return-Path: MAILER-DAEMON@elisa.UGent.be Delivered-To: lievacke@elisa.ugent.be Received: by elisa.UGent.be (Postfix, from userid 911) id EFD081BA05; Sat, 24 Sep 2005 09:58:11 +0200 (CEST) Message-ID: cmu-sieve-26926-1127548690-0@elisa Date: Sat, 24 Sep 2005 09:58:10 +0200 From: Mail Sieve Subsystem postmaster@elisa.ugent.be To: MAILER-DAEMON@elisa.UGent.be MIME-Version: 1.0 Content-Type: multipart/report; report-type=disposition-notification; boundary="26926/elisa" Subject: Automatically rejected mail Auto-Submitted: auto-replied (rejected)
This is a MIME-encapsulated message
--26926/elisa Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit
Your message was automatically rejected by Sieve, a mail filtering language.
The following reason was given: Internal quota calculation error
--26926/elisa Content-Type: message/disposition-notification
Reporting-UA: elisa; Dovecot LDA 1.0.alpha3 Final-Recipient: rfc822; lievacke@elisa.ugent.be Original-Message-ID: cmu-sieve-26913-1127548689-0@elisa Disposition: automatic-action/MDN-sent-automatically; deleted
--26926/elisa Content-Type: message/rfc822
....
Citeren Timo Sirainen tss@iki.fi:
On Sun, 2005-09-18 at 18:08 +0200, Lieven Van Acker wrote:
Hey,
is
http://www.dovecot.org/patches/1.0/quota.tar.gz
supposed to work with maildir quota's for virtual mailboxes?
It should work, but it's not necessarily a good idea since it works by stat()ing all files found in a given directory and with maildir that's slow since there are a lot of files. Proper maildir quota support will come later..
Using it with dovecot-lda (cvs) results in DSN
Your message was automatically rejected by Sieve, a mail filtering language.
The following reason was given: Internal quota calculation error
What do the logs say? Set use_syslog=yes in dovecot-deliver.conf if you don't see anything in MTA's logs. Dovecot should then log to /var/log/mail.log or something.
--
I'm seeing "Internal quota calculation error" using the quota plug-in with Maildirs & imap in 1.0.alpha4.
I think it's because maildir_uidlist_lookup_rec returns NULL after being passed a uid of 0 (from maildir_mail_get_physical_size in maildir-mail.c:185) (and .Trash/dovecot-uidlist doesn't exist)
Backtrace from breakpoint on the error message; during 'A10 COPY 1 "Trash"':
#0 dirsize_quota_try_alloc (ctx=0x80ef670, _quota=0x80e2c50, mail=0x80ff248) at quota-dirsize.c:235 #1 0xb7dbbae1 in quota_try_alloc (ctx=0x80ef670, quota=0x80e2c50, mail=0x80ff248) at quota.c:70 #2 0xb7dbb476 in quota_check (t=0x80ef670, mail=0x80ff248) at quota-storage.c:70 #3 0xb7dbb6f4 in quota_save_finish (ctx=0x8104068, dest_mail=0x80ff248) at quota-storage.c:154 #4 0x080a552d in mailbox_save_finish (ctx=0x8104068, dest_mail=0x80ff248) at mail-storage.c:448 #5 0x080a461d in mail_storage_copy (t=0x80ef670, mail=0x80f0a48, flags=MAIL_SEEN, keywords=0x0, dest_mail=0x80ff248) at mail-copy.c:36 #6 0x0806c305 in maildir_copy (_t=0x80ef670, mail=0x80f0a48, flags=MAIL_SEEN, keywords=0x0, dest_mail=0x80ff248) at maildir-copy.c:165 #7 0xb7dbb571 in quota_copy (t=0x80ef670, mail=0x80f0a48, flags=MAIL_SEEN, keywords=0x0, dest_mail=0x0) at quota-storage.c:99 #8 0x080a557b in mailbox_copy (t=0x80ef670, mail=0x80f0a48, flags=MAIL_SEEN, keywords=0x0, dest_mail=0x0) at mail-storage.c:460 #9 0x08056068 in fetch_and_copy (t=0x80ef670, srcbox=0x80ea660, search_args=0x80e58a0) at cmd-copy.c:34 #10 0x08056263 in cmd_copy (cmd=0x80e3668) at cmd-copy.c:94 #11 0x0805abfc in client_handle_input (cmd=0x80e3668) at client.c:338 #12 0x0805ad2d in _client_input (context=0x80e3628) at client.c:390 #13 0x080bbfe3 in io_loop_handler_run (ioloop=0x80e1e50) at ioloop-poll.c:190 #14 0x080baff5 in io_loop_run (ioloop=0x80e1e50) at ioloop.c:230 #15 0x08064f2b in main (argc=3, argv=0xbfa33554, envp=0xbfa33564) at main.c:232
I don't understand what the Quota plugin causes to be done differently though...
- joshua.
On Fri, Sep 23, 2005 at 03:45:57PM +0300, Timo Sirainen wrote:
On Sun, 2005-09-18 at 18:08 +0200, Lieven Van Acker wrote:
Hey,
is
http://www.dovecot.org/patches/1.0/quota.tar.gz
supposed to work with maildir quota's for virtual mailboxes?
It should work, but it's not necessarily a good idea since it works by stat()ing all files found in a given directory and with maildir that's slow since there are a lot of files. Proper maildir quota support will come later..
Using it with dovecot-lda (cvs) results in DSN
Your message was automatically rejected by Sieve, a mail filtering language.
The following reason was given: Internal quota calculation error
What do the logs say? Set use_syslog=yes in dovecot-deliver.conf if you don't see anything in MTA's logs. Dovecot should then log to /var/log/mail.log or something.
-- Joshua Goodall "as modern as tomorrow afternoon" joshua@roughtrade.net - FW109
participants (4)
-
Joshua Goodall
-
Lieven Van Acker
-
Lieven Van Acker
-
Timo Sirainen