[Dovecot] Problem with mbox and quota with 1.2 version
Hello list,
I am new with dovecot and i am trying to setup a simple mbox with quotas setup. Here is my configuration.
dovecot -c /etc/dovecot.conf -n # 1.2.6: /etc/dovecot.conf # OS: Linux 2.6.21 i686 Fedora Core release 6 (Zod) ext3 log_path: /var/log/mail/dovecot protocols: imap pop3 ssl: no disable_plaintext_auth: no login_dir: /usr/local/var/run/dovecot/login login_executable(default): /usr/local/libexec/dovecot/imap-login login_executable(imap): /usr/local/libexec/dovecot/imap-login login_executable(pop3): /usr/local/libexec/dovecot/pop3-login mail_access_groups: mail mail_privileged_group: mail mail_location: mbox:/var/spool/mail:INBOX=/var/spool/mail/%u:INDEX=/var/spool/indexes/%u mail_debug: yes mail_executable(default): /usr/local/libexec/dovecot/imap mail_executable(imap): /usr/local/libexec/dovecot/imap mail_executable(pop3): /usr/local/libexec/dovecot/pop3 mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugin_dir(default): /usr/local/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 lda: postmaster_address: postmaster@example.com auth default: passdb: driver: pam userdb: driver: passwd plugin: quota_warning: storage=5%% /usr/local/bin/quota-warning.sh 95 quota: dirsize:user quota_rule: ?:storage=10M
I still my mbox fills with e-mail >10M
Do i missing something? Thanks!
--
On 10/10/2009 06:43 PM Ντελάκης Δημήτριος wrote:
Hello list,
I am new with dovecot and i am trying to setup a simple mbox with quotas setup. Here is my configuration.
dovecot -c /etc/dovecot.conf -n # 1.2.6: /etc/dovecot.conf # OS: Linux 2.6.21 i686 Fedora Core release 6 (Zod) ext3 … mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota … lda: postmaster_address: postmaster@example.com … plugin: quota_warning: storage=5%% /usr/local/bin/quota-warning.sh 95 quota: dirsize:user quota_rule: ?:storage=10M
I still my mbox fills with e-mail >10M
Do i missing something?
The only thing I can see at the moment is the missing quota plugin in the lda section:
,--[ http://wiki.dovecot.org/Quota/#Enabling_quota_plugins ]-- | # In case you're using deliver: | protocol lda { | mail_plugins = quota | } `--
When you are not using deliver for storing mails in the inbox, there is no way to update the quota values at mail delivery time (AFAIK).
Regards, Pascal
The trapper recommends today: fabaceae.0928318@localdomain.org
On Sat, 2009-10-10 at 19:43 +0300, Ντελάκης Δημήτριος wrote:
plugin: quota_warning: storage=5%% /usr/local/bin/quota-warning.sh 95 quota: dirsize:user quota_rule: ?:storage=10M
Use quota_rule = *:storage=10M instead of '?'. It probably doesn't matter, but '*' makes it anyway clearer.
I still my mbox fills with e-mail >10M
You need to start using Dovecot deliver and enable quota for it too. http://wiki.dovecot.org/LDA
participants (3)
-
Pascal Volk
-
Timo Sirainen
-
Ντελάκης Δημήτριος