Hi everyone,
I'm trying to make quota to work in dovecot 1.0.rc15 in a Debian machine.
Setting the limit to 1GB and starting to fill up the mailbox and nothing
stopped me. It just kept growing and nothing happened.
Restarted the service and nothing.
I had already exceeded the 1 GB limit and nothing happens, the mailbox still
goes bigger and bigger...
The *"check_quota"* plugin for squirrelmail shows "0.0% of
1.0GB" in my
browser. 1GB is exactly what it is defined in dovecot.conf by maildir.
Is it necessary to configure something in postfix?
Details:
# dovecot --version
1.0.rc15
# dovecot -n
# /etc/dovecot/dovecot.conf
IEffective uid=65534, gid=65534
ILoading modules from directory: /usr/lib/dovecot/modules/imap
IModule loaded: /usr/lib/dovecot/modules/imap/lib01_quota_plugin.so
IModule loaded: /usr/lib/dovecot/modules/imap/lib02_imap_quota_plugin.so
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap pop3
ssl_disable: yes
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: 0
first_valid_gid: 0
mail_privileged_group: users
mail_location: mbox:/home/%u:INBOX=/var/mail/%u
mail_debug: yes
mmap_disable: yes
mbox_read_locks: flock
mbox_write_locks: flock
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
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
auth default:
passdb:
driver: pam
userdb:
driver: passwd
regards,
--
Bruno Guimar?es Sousa
www.ifba.edu.br
PONTONET - DGTI - IFBA
Ci?ncia da Computa??o UFBA
Registered Linux user #465914
On 2009-12-22, Bruno Guimar?es Sousa (brgsousa at gmail.com) wrote:> Details: > # dovecot --version > 1.0.rc15Upgrade. No point in even discussing this until you do. 1.0rc15 is way, way too old and buggy. -- Best regards, Charles
On Tue, 2009-12-22 at 17:44 -0300, Bruno Guimar?es Sousa wrote:> I'm trying to make quota to work in dovecot 1.0.rc15 in a Debian machine. > Setting the limit to 1GB and starting to fill up the mailbox and nothing > stopped me. It just kept growing and nothing happened. > Restarted the service and nothing. > I had already exceeded the 1 GB limit and nothing happens, the mailbox still > goes bigger and bigger... > > The *"check_quota"* plugin for squirrelmail shows "0.0% of 1.0GB" in my > browser. 1GB is exactly what it is defined in dovecot.conf by maildir. > > Is it necessary to configure something in postfix?Yes. You need to use Dovecot deliver, Postfix's maildir delivery won't update quota. http://wiki.dovecot.org/LDA -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20091223/d4b4b5fe/attachment-0002.bin>
I am using system users + filesystem quota + dovecot + postfix + debian.
Can't update my dovecot to a newer version :(
Some lines of my configuration file (dovecot.conf) are like this:
mail_location = mbox:/home/%u:INBOX=/var/mail/%u
mbox_lazy_writes = yes
protocol imap {
mail_plugins = quota imap_quota
}
plugin {
quota = fs:user
}
Now, it working. Squirrelmail shows the quota bar. The problem is that it
reads only mbox quota. I need to dovecot to read both filesystem quotas as
one.
[image:
?ui=2&view=att&th=1260052db09cca97&attid=0.1&disp=attd&realattid=ii_1260052db09cca97&zw]
My own user quota is defined like this:
# quota just_me
Disk quotas for user just_me (uid 4877):
Filesystem blocks quota limit grace files quota limit
grace
/dev/sdc1 861296 900000 1000000 1 0 0
/dev/sdb1 371156 900000 1000000 30 0 0
/dev/sdc1 is /var/mail/ (INBOX)
/dev/sdb1 is /home/ (mbox)
What should I do in order to squirrelmail to show a quota of 1.8GB (INBOX +
mbox) ?
regards,
--
Bruno Guimar?es Sousa
www.ifba.edu.br
PONTONET - DGTI - IFBA
Ci?ncia da Computa??o UFBA
Registered Linux user #465914
2009/12/23 Timo Sirainen <tss at iki.fi>
> On Tue, 2009-12-22 at 17:44 -0300, Bruno Guimar?es Sousa wrote:
> > I'm trying to make quota to work in dovecot 1.0.rc15 in a Debian
machine.
> > Setting the limit to 1GB and starting to fill up the mailbox and
nothing
> > stopped me. It just kept growing and nothing happened.
> > Restarted the service and nothing.
> > I had already exceeded the 1 GB limit and nothing happens, the mailbox
> still
> > goes bigger and bigger...
> >
> > The *"check_quota"* plugin for squirrelmail shows "0.0%
of 1.0GB" in my
> > browser. 1GB is exactly what it is defined in dovecot.conf by maildir.
> >
> > Is it necessary to configure something in postfix?
>
> Yes. You need to use Dovecot deliver, Postfix's maildir delivery
won't
> update quota. http://wiki.dovecot.org/LDA
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imagem.PNG
Type: image/png
Size: 2759 bytes
Desc: not available
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20100105/dd674ceb/attachment-0002.png>