Ok so basically I have two problems:
- I dont understand why the maildirsize file isn't automatically created when it's not there.
- I have set a quota limit of 10MB and (extra) 8MB on the Trash folder.
Mar 10 16:09:46 mx01 dovecot: auth(default): master out: USER 4 roka-05 uid=1001 gid=1001 quota_rule=maildir:storage=10M quota_rule2=Trash:storage=8M Mar 10 16:09:46 mx01 dovecot: IMAP(roka-05): Loading modules from directory: /usr/local/dovecot/lib/dovecot/imap Mar 10 16:09:46 mx01 dovecot: IMAP(roka-05): Module loaded: /usr/local/dovecot/lib/dovecot/imap/lib10_quota_plugin.so Mar 10 16:09:46 mx01 dovecot: IMAP(roka-05): Module loaded: /usr/local/dovecot/lib/dovecot/imap/lib11_imap_quota_plugin.so Mar 10 16:09:46 mx01 dovecot: IMAP(roka-05): Effective uid=1001, gid=1001, home= Mar 10 16:09:46 mx01 dovecot: IMAP(roka-05): Quota root: name= backend=maildir args= Mar 10 16:09:46 mx01 dovecot: IMAP(roka-05): Quota rule: root= mailbox=maildir bytes=10485760 messages=0 Mar 10 16:09:46 mx01 dovecot: IMAP(roka-05): Quota rule: root= mailbox=Trash bytes=8388608 messages=0 Mar 10 16:09:46 mx01 dovecot: IMAP(roka-05): maildir: data=/var/spool/mail/r/o/roka-05 Mar 10 16:09:46 mx01 dovecot: IMAP(roka-05): maildir++: root=/var/spool/mail/r/o/roka-05, index=, control=, inbox=/var/spool/mail/r/o/roka-05
My maildirsize file gives the right numbers: #cat maildirsize 10485760S 13951528 318
I have ~13MB in my Inbox but when I try to delete mail (in SquirrelMail); I get this error:
ERROR: Could not complete request. Request: COPY 105 "Trash" Reason Given: Quota exceeded
(The mail I try to delete is only a couple of KBs.) There should be up to 18MB available in Trash right?
I've looked at some straces and I can see a file is linked to the /tmp dir from the Trash folder (so write access seems OK). But this file gets unlinked later.
Could this be a problem: [pid 5848] rename("/var/spool/mail/r/o/roka-05/dovecot.index.tmp", "/var/spool/mail/r/o/roka-05/dovecot.index") = 0
This is in the maildir: which is over quota. Or is it the SM implementation that is wrong and are there any workarounds available?
Cheers,
Jan
-----Oorspronkelijk bericht----- Van: Jan van den Berg Verzonden: maandag 10 maart 2008 14:53 Aan: Jan van den Berg; Dovecot Mailing List Onderwerp: RE: [Dovecot] Maildirsize automatically (re)build
Of course the rule is wrong:
":ignore=Spam\ e\-mail" shouldn't be in there.
I fixed it.
But still; why isn't the maildirsize being recreated when it's not there?
Cheers,
Jan -----Oorspronkelijk bericht----- Van: dovecot-bounces+jan.vandenberg=isp.solcon.nl@dovecot.org [mailto:dovecot-bounces+jan.vandenberg=isp.solcon.nl@dovecot.org] Namens Jan van den Berg Verzonden: maandag 10 maart 2008 13:54 Aan: Dovecot Mailing List Onderwerp: Re: [Dovecot] Maildirsize automatically (re)build
Right... I made a typo: userdb_quotarule instead of userdb_quota_rule (weird that Dovecot doesn't complain about this).
But now I get this error:
Mar 10 13:52:29 mx01 dovecot: IMAP(roka-05): Quota rule: root= mailbox=maildir bytes=10485760 messages=0 Mar 10 13:52:29 mx01 dovecot: IMAP(roka-05): Quota root QUOTA: Invalid rule: maildir:storage=10M:ignore=Spam e-mail
Cheers,
Jan -----Oorspronkelijk bericht----- Van: dovecot-bounces+jan.vandenberg=isp.solcon.nl@dovecot.org [mailto:dovecot-bounces+jan.vandenberg=isp.solcon.nl@dovecot.org] Namens Jan van den Berg Verzonden: maandag 10 maart 2008 13:40 Aan: Dovecot Mailing List Onderwerp: [Dovecot] Maildirsize automatically (re)build
Hi,
Im testing with 1.1RC1. I read here: http://wiki.dovecot.org/Quota/Maildir
"If you configure quota limits in Dovecot (e.g. quota=maildir:storage=102400(kilobytes)), Dovecot makes sure that this header is kept up to date. If the file does not exist, it's simply rebuilt."
This is my query:
password_query = SELECT username as user, username as userdb_user, passwd as password, 1001 as userdb_uid, 1001 as userdb_gid, concat('maildir:storage=', quota, 'M:ignore=Spam\ e\-mail') AS userdb_quotarule, 'Trash:storage=20M' as userdb_quota_rule2 FROM mailboxen WHERE username = '%n'
Also in the main config I use: mail_plugins: quota imap_quota plugin: quota: maildir
So I use maildir:storage in my config. However when I delete the maildirsize (for testing purposes) it doesn't get automatically recreated? According to the Wiki it should right?
Cheers,
Jan