[Dovecot] Quota without dovecot LDA
Hi all,
I use dovecot with maildir quota plugin + qmail + vpopmail but not dovecot LDA.
My dovecot configuration: default_mail_env=maildir:~/Maildir:INDEX=/var/cache/dovecot/indexes/%h/%u:CONTROL=/var/cache/dovecot/control/%h
If CONTROL env is set the maildirsize file is stored in /var/cache/dovecot/control/ but I use vpopmail as LDA.
It's possible to add a setting in dovecot.conf to specify if dovecot LDA is active??
This is my pseudo-patch:
src/plugins/quota/quota-maildir.c
static const char *maildirsize_get_path(struct mail_storage *storage) { if (lda_enable) { return t_strconcat(mail_storage_get_mailbox_control_dir(storage, ""), } else { bool is_file; return t_strconcat(mail_storage_get_mailbox_path(storage, "", &is_file), "/"MAILDIRSIZE_FILENAME, NULL); } }
dovecot.conf: lda_enable = no
Ciao Rick
On Wed, 2006-11-08 at 10:22 +0100, Riccardo Bini wrote:
Hi all,
I use dovecot with maildir quota plugin + qmail + vpopmail but not dovecot LDA.
My dovecot configuration: default_mail_env=maildir:~/Maildir:INDEX=/var/cache/dovecot/indexes/%h/%u:CONTROL=/var/cache/dovecot/control/%h
If CONTROL env is set the maildirsize file is stored in /var/cache/dovecot/control/ but I use vpopmail as LDA.
Why do you want to set CONTROL at all then? Based on the /var/cache name you seem to think that control files are unimportant. I think they're rather important and should be in backups and such.
Alle 13:43, mercoledì 8 novembre 2006, Timo Sirainen ha scritto:
On Wed, 2006-11-08 at 10:22 +0100, Riccardo Bini wrote:
Hi all,
I use dovecot with maildir quota plugin + qmail + vpopmail but not dovecot LDA.
My dovecot configuration: default_mail_env=maildir:~/Maildir:INDEX=/var/cache/dovecot/indexes/%h/%u :CONTROL=/var/cache/dovecot/control/%h
If CONTROL env is set the maildirsize file is stored in /var/cache/dovecot/control/ but I use vpopmail as LDA.
Why do you want to set CONTROL at all then? Based on the /var/cache name you seem to think that control files are unimportant. I think they're rather important and should be in backups and such.
No, I think CONTROL is important. I have to set CONTROL dir outside the maildir directory because I use also filesystem quota. But I use vpopmail and the 'maildirsize' file for the soft quota it must stay in maildir root and not in CONTROL dir. So I need the CONTROL files in /var/cache/dovecot (/home has quota enable, / not) but maildirsize in maildir.
Ciao Rick
On Wed, 2006-11-08 at 13:54 +0100, Riccardo Bini wrote:
Alle 13:43, mercoledì 8 novembre 2006, Timo Sirainen ha scritto:
On Wed, 2006-11-08 at 10:22 +0100, Riccardo Bini wrote:
Hi all,
I use dovecot with maildir quota plugin + qmail + vpopmail but not dovecot LDA.
My dovecot configuration: default_mail_env=maildir:~/Maildir:INDEX=/var/cache/dovecot/indexes/%h/%u :CONTROL=/var/cache/dovecot/control/%h
If CONTROL env is set the maildirsize file is stored in /var/cache/dovecot/control/ but I use vpopmail as LDA.
Why do you want to set CONTROL at all then? Based on the /var/cache name you seem to think that control files are unimportant. I think they're rather important and should be in backups and such.
No, I think CONTROL is important. I have to set CONTROL dir outside the maildir directory because I use also filesystem quota. But I use vpopmail and the 'maildirsize' file for the soft quota it must stay in maildir root and not in CONTROL dir. So I need the CONTROL files in /var/cache/dovecot (/home has quota enable, / not) but maildirsize in maildir.
I think this is way too much of a special case to have a new setting, one quota enforcement way should be enough :) You'll have to settle to patching for now.
On Wed, 2006-11-08 at 16:46 +0100, Riccardo Bini wrote:
I think this is way too much of a special case to have a new setting, one quota enforcement way should be enough :) You'll have to settle to patching for now.
I made a patch for this problem. It's right and and safe?
Yes, looks correct.
participants (2)
-
Riccardo Bini
-
Timo Sirainen