Hey,
I've been strugling to get quota working on my enviroment.
I have one storage server that exports the 'home' dir. My mail server mounts the exported 'home' server at '/home'
# dovecot --version
1.1.14
I'm also running Postfix and using Dovecot/LDA as MDA so that we can use the Dovecot's Quota plugin.
The thing is that if the user has exceeded it's quota the LDA detects it and I get a response from postmaster warning me that the INBOX is full. But through IMAP, if I issue :
C: 1 GETQUOTAROOT INBOX S: * QUOTAROOT INBOX "" S: 1 OK Getquota complete
There's no:
- QUOTA "" (STORAGE 10 512)
I've tried using this plugin for Thunderbird: https://addons.mozilla.org/pt-BR/thunderbird/addon/881 And also tested issuing commands by hand.
Running 'quota' on the console works just fine, that means that rpc.rquotad is running smoothly.
# quota USER
Disk quotas for user coutinho (uid 1191): Filesystem blocks quota limit grace files quota limit grace home.mail:/home 166264* 102400 153600 3013 0 0
Thanks in advance for you help.
-- Flávio Coutinho da Costa
No one?
On Wed, May 6, 2009 at 1:23 PM, Flavio Costa flavio.cdc@gmail.com wrote:
Hey,
I've been strugling to get quota working on my enviroment.
I have one storage server that exports the 'home' dir. My mail server mounts the exported 'home' server at '/home'
# dovecot --version
1.1.14
I'm also running Postfix and using Dovecot/LDA as MDA so that we can use the Dovecot's Quota plugin.
The thing is that if the user has exceeded it's quota the LDA detects it and I get a response from postmaster warning me that the INBOX is full. But through IMAP, if I issue :
C: 1 GETQUOTAROOT INBOX S: * QUOTAROOT INBOX "" S: 1 OK Getquota complete
There's no:
- QUOTA "" (STORAGE 10 512)
I've tried using this plugin for Thunderbird: https://addons.mozilla.org/pt-BR/thunderbird/addon/881 And also tested issuing commands by hand.
Running 'quota' on the console works just fine, that means that rpc.rquotad is running smoothly.
# quota USER
Disk quotas for user coutinho (uid 1191): Filesystem blocks quota limit grace files quota limit grace home.mail:/home 166264* 102400 153600 3013 0 0
Thanks in advance for you help.
-- Flávio Coutinho da Costa
-- Flávio Coutinho da Costa
Flavio Costa a écrit :
Hey, Hi,
I've been strugling to get quota working on my enviroment.
I have one storage server that exports the 'home' dir. My mail server mounts the exported 'home' server at '/home'
We have something like that
# dovecot --version
1.1.14
1.1.11 for us
I'm also running Postfix and using Dovecot/LDA as MDA so that we can use the Dovecot's Quota plugin.
Here, from 'dovecot -n':
mail_plugins(imap): quota imap_quota quota: fs:user:noenforcing
The thing is that if the user has exceeded it's quota the LDA detects it and I get a response from postmaster warning me that the INBOX is full. But through IMAP, if I issue :
C: 1 GETQUOTAROOT INBOX S: * QUOTAROOT INBOX "" S: 1 OK Getquota complete
There's no:
- QUOTA "" (STORAGE 10 512)
Here: . OK Logged in. . GETQUOTAROOT INBOX
- QUOTAROOT "INBOX" "user"
- QUOTA "user" (STORAGE 46752 2355200) . OK Getquotaroot completed.
I'll try with 1.1.14 this week (if I manage to get time for that …)
I'll be back here if there is some regression.
-- *Geoffroy Desvernay* C.R.I - Administration systèmes et réseaux Ecole Centrale de Marseille
Thanks for your reply, I'll be waiting for your awnser.
On Sun, May 10, 2009 at 4:25 PM, geoffroy desvernay < dgeo@centrale-marseille.fr> wrote:
Flavio Costa a écrit :
Hey, Hi,
I've been strugling to get quota working on my enviroment.
I have one storage server that exports the 'home' dir. My mail server mounts the exported 'home' server at '/home'
We have something like that
# dovecot --version
1.1.14
1.1.11 for us
I'm also running Postfix and using Dovecot/LDA as MDA so that we can use
the
Dovecot's Quota plugin. Here, from 'dovecot -n':
mail_plugins(imap): quota imap_quota quota: fs:user:noenforcing
The thing is that if the user has exceeded it's quota the LDA detects it
and
I get a response from postmaster warning me that the INBOX is full. But through IMAP, if I issue :
C: 1 GETQUOTAROOT INBOX S: * QUOTAROOT INBOX "" S: 1 OK Getquota complete
There's no:
- QUOTA "" (STORAGE 10 512)
Here: . OK Logged in. . GETQUOTAROOT INBOX
- QUOTAROOT "INBOX" "user"
- QUOTA "user" (STORAGE 46752 2355200) . OK Getquotaroot completed.
I'll try with 1.1.14 this week (if I manage to get time for that …)
I'll be back here if there is some regression.
-- *Geoffroy Desvernay* C.R.I - Administration systèmes et réseaux Ecole Centrale de Marseille
-- Flávio Coutinho da Costa
geoffroy desvernay wrote :
The thing is that if the user has exceeded it's quota the LDA detects it and I get a response from postmaster warning me that the INBOX is full. But through IMAP, if I issue :
C: 1 GETQUOTAROOT INBOX S: * QUOTAROOT INBOX "" S: 1 OK Getquota complete
There's no:
- QUOTA "" (STORAGE 10 512)
Here: . OK Logged in. . GETQUOTAROOT INBOX
- QUOTAROOT "INBOX" "user"
- QUOTA "user" (STORAGE 46752 2355200) . OK Getquotaroot completed.
I'll try with 1.1.14 this week (if I manage to get time for that …)
I'll be back here if there is some regression.
FWIW, I seem to have a similar issue with 1.1.14 and system quotas on the /home filesystem (different ext3 partition, no NFS) :
. OK Logged in. . getquotaroot INBOX
- QUOTAROOT "INBOX" . OK Getquotaroot completed.
I've tried with all of the following options : quota = fs:user quota = fs:user:mount=/home quota = fs:user:mount=/home:noenforcing
If I change temporarily to the following, then it "works" (not using the filesystem quotas, of course) : quota = dirsize:user quota_rule = *:storage=10M
The filesystem quotas are working on the system and I can see them just fine with "repquota /home". Could this be the same problem? The Wiki doesn't point to further configuration options for the fs quotas, so I don't think I'm missing any configuration.
Since Geoffroy reported that it was working with 1.1.11 for him, I'll try a temporary downgrade to check if it makes any difference.
Matthias
-- Clean custom Red Hat Linux rpm packages : http://freshrpms.net/ Fedora release 10 (Cambridge) - Linux kernel 2.6.27.21-170.2.56.fc10.x86_64 Load : 0.38 0.28 0.20
Matthias Saou wrote :
FWIW, I seem to have a similar issue with 1.1.14 and system quotas on the /home filesystem (different ext3 partition, no NFS) :
. OK Logged in. . getquotaroot INBOX
- QUOTAROOT "INBOX" . OK Getquotaroot completed.
I've tried with all of the following options : quota = fs:user quota = fs:user:mount=/home quota = fs:user:mount=/home:noenforcing
If I change temporarily to the following, then it "works" (not using the filesystem quotas, of course) : quota = dirsize:user quota_rule = *:storage=10M
The filesystem quotas are working on the system and I can see them just fine with "repquota /home". Could this be the same problem? The Wiki doesn't point to further configuration options for the fs quotas, so I don't think I'm missing any configuration.
Since Geoffroy reported that it was working with 1.1.11 for him, I'll try a temporary downgrade to check if it makes any difference.
My bad. Right now I was trying with a "clean" setup where the user had no quota enforced (0 soft, 0 hard). I set a quota with 1.1.11 and it worked, then I upgraded back to 1.1.14 and it still works.
I'm really sure I had problems with my previous testing setup, but that might have been with the 1.2 rc and/or with quotas enforced on "/" instead of "/home" (if that can make any difference...).
Sorry for the noise. Flavio : Can you check to make sure that your user has a quota set for the filesytem, just in case?
Matthias
-- Clean custom Red Hat Linux rpm packages : http://freshrpms.net/ Fedora release 10 (Cambridge) - Linux kernel 2.6.27.21-170.2.56.fc10.x86_64 Load : 0.09 0.44 0.43
On Wed, 2009-05-06 at 13:23 -0300, Flavio Costa wrote:
But through IMAP, if I issue :
C: 1 GETQUOTAROOT INBOX S: * QUOTAROOT INBOX "" S: 1 OK Getquota complete
There's no:
- QUOTA "" (STORAGE 10 512)
That's because:
May 6 13:06:46 SERVER_NAME dovecot: IMAP(USER_LOGGED): quota-fs: host=home.domain, path=/home, uid=1191 May 6 13:06:46 SERVER_NAME dovecot: IMAP(USER_LOGGED): quota-fs: uid=1191, value=0, limit=0, active=0
Dovecot successfully looks up quota and the server returns active=0, which means that the server told Dovecot the quota isn't active for this user. Why that would happen, I've really no idea.
Interestingly enough I don't see rq_active being checked by quota-tools code. You could always see what happens if you just make Dovecot ignore it. In src/plugins/quota/quota-fs.c change:
if (rq->rq_active) {
to
if (rq->rq_active || 1) {
On Mon, 2009-05-11 at 12:21 -0400, Timo Sirainen wrote:
May 6 13:06:46 SERVER_NAME dovecot: IMAP(USER_LOGGED): quota-fs: host=home.domain, path=/home, uid=1191 May 6 13:06:46 SERVER_NAME dovecot: IMAP(USER_LOGGED): quota-fs: uid=1191, value=0, limit=0, active=0
Dovecot successfully looks up quota and the server returns active=0, which means that the server told Dovecot the quota isn't active for this user. Why that would happen, I've really no idea.
What do you use as NFS server?
participants (4)
-
Flavio Costa
-
geoffroy desvernay
-
Matthias Saou
-
Timo Sirainen