[Dovecot] quota: maildrop + dovecot. dovecot doesn't update maildirsize file
Hi all, I'm trying to implement quota support in postfix using maildrop + dovecot but I think dovecot doesn't update info stored in maildirsize file.
# 1.0.2: /etc/dovecot/dovecot.conf base_dir: /var/run/dovecot/ listen: 127.0.0.1 ssl_listen: * ssl_ca_file: ... ssl_cert_file: ... ssl_key_file: ... ssl_cipher_list: ALL:!LOW:!SSLv2 login_dir: /var/run/dovecot/login login_executable: /usr/libexec/dovecot/imap-login valid_chroot_dirs: /home/vmail/domains first_valid_uid: 1001 last_valid_uid: 1001 first_valid_gid: 1001 last_valid_gid: 1001 mail_location: maildir:/home/vmail/domains/%d/%n auth default: user: dovecot-auth passdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf userdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf plugin: quota: maildir:ignore=Trash
When a mail arrives maildrop delivers it and update info in the maildirsize file, but when I delete messages through dovecot (using thunderbird) the maildirsize remains the same and so users reach overquota very soon.
What's wrong?
Thanks in advance, Laurento
Hi Laurento,
I think you missed out mail_plugins = quota for the appropriate protocol(s)?
e.g. protocol imap { ... mail_plugins = quota ... }
On Tue, 24 Jul 2007, Frittella Laurento wrote:
Hi all, I'm trying to implement quota support in postfix using maildrop + dovecot but I think dovecot doesn't update info stored in maildirsize file.
# 1.0.2: /etc/dovecot/dovecot.conf base_dir: /var/run/dovecot/ listen: 127.0.0.1 ssl_listen: * ssl_ca_file: ... ssl_cert_file: ... ssl_key_file: ... ssl_cipher_list: ALL:!LOW:!SSLv2 login_dir: /var/run/dovecot/login login_executable: /usr/libexec/dovecot/imap-login valid_chroot_dirs: /home/vmail/domains first_valid_uid: 1001 last_valid_uid: 1001 first_valid_gid: 1001 last_valid_gid: 1001 mail_location: maildir:/home/vmail/domains/%d/%n auth default: user: dovecot-auth passdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf userdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf plugin: quota: maildir:ignore=Trash
When a mail arrives maildrop delivers it and update info in the maildirsize file, but when I delete messages through dovecot (using thunderbird) the maildirsize remains the same and so users reach overquota very soon.
What's wrong?
Thanks in advance, Laurento
Tan Shao Yi ha scritto:
Hi Laurento,
I think you missed out mail_plugins = quota for the appropriate protocol(s)?
You're right :) Now I added it and thunderbird show me the quota % usage but when I delete messages the quota still doesn't change. I think dovecot should update maildirsize when I made some change to my folders, shouldn't it?
Regards, Laurento
On Tue, 24 Jul 2007, Frittella Laurento wrote:
Tan Shao Yi ha scritto:
Hi Laurento,
I think you missed out mail_plugins = quota for the appropriate protocol(s)?
You're right :) Now I added it and thunderbird show me the quota % usage but when I delete messages the quota still doesn't change. I think dovecot should update maildirsize when I made some change to my folders, shouldn't it?
Hi Laurento,
"imap_quota" is the plugin that reports quota information to Thunderbird. "quota" is the one you are looking for.
My config looks like this:
protocol imap { login_executable = /usr/local/libexec/dovecot/imap-login mail_executable = /usr/local/libexec/dovecot/imap imap_max_line_length = 65536 mail_plugins = quota imap_quota mail_log mail_plugin_dir = /usr/local/lib/dovecot/imap login_greeting_capability = no imap_client_workarounds = outlook-idle }
Now it seems to work using ldap backend to sync maildrop and dovecot info ;)
I followed wiki example and I'm using this simple convert script because I'm storing quota info in ldap using the courier format <bytes>S to use it with maildrop (through authlib) too
-- quota_convert.sh
#!/bin/bash
if [[ -n "${QUOTA_COURIER}" ]] ; then
# strip the 'S' from the stored quota value (courier format)
export QUOTA=maildir:storage=expr ${QUOTA_COURIER/S/} / 1024
:ignore=Trash
fi
exec /usr/libexec/dovecot/imap
PS: checking for non-zero length var avoid an expr error message when dovecot starts
Many thanks for the help.
Cheers, Laurento
On 25.7.2007, at 12.49, Frittella Laurento wrote:
Now it seems to work using ldap backend to sync maildrop and
dovecot info ;)I followed wiki example and I'm using this simple convert script
because I'm storing quota info in ldap using the courier format <bytes>S to
use it with maildrop (through authlib) too
With v1.1 it's possible to do:
user_attrs = ...,quotaCourier=quota_rule=*:backend=%$
Timo Sirainen wrote:
On 25.7.2007, at 12.49, Frittella Laurento wrote:
Now it seems to work using ldap backend to sync maildrop and dovecot info ;)
I followed wiki example and I'm using this simple convert script because I'm storing quota info in ldap using the courier format <bytes>S to use it with maildrop (through authlib) too
With v1.1 it's possible to do:
user_attrs = ...,quotaCourier=quota_rule=*:backend=%$
would you update the quota wiki page since currently it's not too clear how to use (what's the global qouta setting, what can and how comes from userdb and what is the correct syntax). thanks.
-- Levente "Si vis pacem para bellum!"
On 25.7.2007, at 13.09, Farkas Levente wrote:
would you update the quota wiki page since currently it's not too
clear how to use (what's the global qouta setting, what can and how comes
from userdb and what is the correct syntax).
Updated Quota, Quota/Maildir and UserDatabase/ExtraFields. I don't
know how to make them any clearer.
participants (4)
-
Farkas Levente
-
Frittella Laurento
-
Tan Shao Yi
-
Timo Sirainen