[Dovecot] quota and dict quota
Hi I am running dovecot with quota. as show in this part of dovecot.conf . protocols = imap pop3 protocol imap { mail_plugins = quota imap_quota imap_client_workarounds = outlook-idle delay-newmail } protocol pop3 { mail_plugins = quota pop3_client_workarounds = outlook-no-nuls oe-ns-eoh pop3_uidl_format = %08Xu%08Xv } protocol lda { mail_plugins = quota log_path = /var/log/dovecot-deliver.log info_log_path = /var/log/dovecot-deliver.log }
Now I want to see the users's use of quota in postfixadmin, wich demende the use of dict quota. That is wath I do not understang.
Can I have dict quota and mail_plugins=quota at the same time?
How do I do?
Thanks
On Wed, 2009-02-18 at 17:06 +0100, Osvaldo Alvarez Pozo wrote:
Now I want to see the users's use of quota in postfixadmin, wich demende the use of dict quota. That is wath I do not understang.
Can I have dict quota and mail_plugins=quota at the same time?
You have to use mail_plugins=quota to get dict quota working. Since you didn't post your entire config (use dovecot -n), I'm assuming you're currently using Maildir++ quota. You can't really use both Maildir++ quota and dict quota at the same time. But there's really no point in doing that anyway.
You also didn't specify your Dovecot version. If you're using v1.1 you could enable dict quota pretty easily by just changing the quota=maildir to quota=dict and setting up other dict quota settings right. With v1.0 you don't really want to use dict quota, it's pretty broken.
Hi. Ok my file is :
mail_location = maildir:/var/vmail/%d/%u/Maildir mail_extra_groups = mail first_valid_uid = 5000 last_valid_uid = 5000 maildir_copy_with_hardlinks = yes disable_plaintext_auth = no dotlock_use_excl=yes protocols = imap pop3
protocol imap { mail_plugins = quota imap_quota imap_client_workarounds = outlook-idle delay-newmail
protocol pop3 { mail_plugins = quota pop3_client_workarounds = outlook-no-nuls oe-ns-eoh pop3_uidl_format = %08Xu%08Xv } protocol lda { mail_plugins = quota log_path = /var/log/dovecot-deliver.log info_log_path = /var/log/dovecot-deliver.log } auth default { mechanisms = plain login passdb sql { args = /usr/dovecot/etc/sql.conf } # userdb prefetch { # } userdb sql { args = /usr/dovecot/etc/sql.conf } dict { } plugin { }
My dovecot version is 1.1 . I use dovecot with maildir
Thanks very much.
On Sat, Feb 21, 2009 at 12:12 AM, Timo Sirainen tss@iki.fi wrote:
On Wed, 2009-02-18 at 17:06 +0100, Osvaldo Alvarez Pozo wrote:
Now I want to see the users's use of quota in postfixadmin, wich demende the use of dict quota. That is wath I do not understang.
Can I have dict quota and mail_plugins=quota at the same time?
You have to use mail_plugins=quota to get dict quota working. Since you didn't post your entire config (use dovecot -n), I'm assuming you're currently using Maildir++ quota. You can't really use both Maildir++ quota and dict quota at the same time. But there's really no point in doing that anyway.
You also didn't specify your Dovecot version. If you're using v1.1 you could enable dict quota pretty easily by just changing the quota=maildir to quota=dict and setting up other dict quota settings right. With v1.0 you don't really want to use dict quota, it's pretty broken.
On Sat, 2009-02-21 at 19:06 +0100, Osvaldo Alvarez Pozo wrote:
Hi. Ok my file is :
It's better to paste output of dovecot -n instead of the actual config file.
auth default { mechanisms = plain login passdb sql { args = /usr/dovecot/etc/sql.conf } # userdb prefetch { # } userdb sql { args = /usr/dovecot/etc/sql.conf }
Especially because you left one "}" out here, so I'm now wondering if this really is your full config.
dict { } plugin { }
And you don't have anything in plugin {}, which makes me wonder if you have quota enabled at all.
Set mail_debug=yes, auth_debug=yes, login to the server and paste the logs?
My dovecot version is 1.1 .
Which v1.1 exactly?
the ouput of dovecot -n
dovecot -n # 1.0.15: /etc/dovecot/dovecot.conf protocols: imap pop3 disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login first_valid_uid: 5000 last_valid_uid: 5000 mail_access_groups: mail mail_location: maildir:/var/vmail/%d/%u/Maildir mail_debug: yes maildir_copy_with_hardlinks: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 imap_client_workarounds(default): outlook-idle delay-newmail imap_client_workarounds(imap): outlook-idle delay-newmail imap_client_workarounds(pop3): outlook-idle pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xu%08Xv pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login user: nobody passdb: driver: sql args: /etc/dovecot/sql.conf userdb: driver: sql args: /etc/dovecot/sql.conf socket: type: listen master: path: /var/run/dovecot/auth-master mode: 432 user: vmail group: mail
Thanks very much. And my quota works.
On Sat, Feb 21, 2009 at 7:44 PM, Timo Sirainen tss@iki.fi wrote:
On Sat, 2009-02-21 at 19:06 +0100, Osvaldo Alvarez Pozo wrote:
Hi. Ok my file is :
It's better to paste output of dovecot -n instead of the actual config file.
auth default { mechanisms = plain login passdb sql { args = /usr/dovecot/etc/sql.conf } # userdb prefetch { # } userdb sql { args = /usr/dovecot/etc/sql.conf }
Especially because you left one "}" out here, so I'm now wondering if this really is your full config.
dict { } plugin { }
And you don't have anything in plugin {}, which makes me wonder if you have quota enabled at all.
Set mail_debug=yes, auth_debug=yes, login to the server and paste the logs?
My dovecot version is 1.1 .
Which v1.1 exactly?
On Sat, 2009-02-21 at 20:09 +0100, Osvaldo Alvarez Pozo wrote:
dovecot -n # 1.0.15: /etc/dovecot/dovecot.conf ..
My dovecot version is 1.1 .
Which v1.1 exactly?
You're using v1.0.15. Before even thinking about using dict quota, upgrade to v1.1. Dict quota is pretty broken in v1.0.
participants (2)
-
Osvaldo Alvarez Pozo
-
Timo Sirainen