[Dovecot] Quota over NFS
I have accidentaly reply only to Timo, so I'm forwarding to discussion back to the list. Sorry!
---------- Forwarded message ---------- From: Timo Sirainen tss@iki.fi Date: Mon, May 11, 2009 at 3:12 PM Subject: Re: [Dovecot] Quota over NFS To: Flavio Costa flavio.cdc@gmail.com
On Mon, 2009-05-11 at 15:03 -0300, Flavio Costa wrote:
I get that the server doesn't reply correctly to Dovecot, but the thing is: why does the LDA works properly?
May 6 13:15:35 SERVER_NAME deliver(USER_TO): msgid=<eb4d7eac0905060915y130b9af6i93567e198659d5f7@mail.gmail.com>:
rejected: Not enough disk space
Because it's the NFS server that enforces the quota here. You'd get this error even if you didn't load quota plugin at all. Also note that it's saying "Not enough disk space", not "Quota exceeded" which is the error message from Dovecot v1.0's quota plugin.
And yet, why does 'quota <user>' replies correctly and Dovecot doesn't?
Looking at quota-tools sources, it seemed to ignore the active-check entirely. So I don't know if Dovecot should ignore it too..
They all obtain the info from the rpc.rquotad running on the fileserver, right?
Yeah.
-- Flávio Coutinho da Costa
I don't know what active-check means, unfortunatelly. If there's anything I could do in order to diagnose what's going on (a patch maybe?)
On Mon, May 11, 2009 at 3:26 PM, Flavio Costa flavio.cdc@gmail.com wrote:
I have accidentaly reply only to Timo, so I'm forwarding to discussion back to the list. Sorry!
---------- Forwarded message ---------- From: Timo Sirainen tss@iki.fi Date: Mon, May 11, 2009 at 3:12 PM Subject: Re: [Dovecot] Quota over NFS To: Flavio Costa flavio.cdc@gmail.com
On Mon, 2009-05-11 at 15:03 -0300, Flavio Costa wrote:
I get that the server doesn't reply correctly to Dovecot, but the thing is: why does the LDA works properly?
May 6 13:15:35 SERVER_NAME deliver(USER_TO): msgid=<
eb4d7eac0905060915y130b9af6i93567e198659d5f7@mail.gmail.com>: rejected: Not enough disk space
Because it's the NFS server that enforces the quota here. You'd get this error even if you didn't load quota plugin at all. Also note that it's saying "Not enough disk space", not "Quota exceeded" which is the error message from Dovecot v1.0's quota plugin.
And yet, why does 'quota <user>' replies correctly and Dovecot doesn't?
Looking at quota-tools sources, it seemed to ignore the active-check entirely. So I don't know if Dovecot should ignore it too..
They all obtain the info from the rpc.rquotad running on the fileserver, right?
Yeah.
-- Flávio Coutinho da Costa
-- Flávio Coutinho da Costa
On Mon, 2009-05-11 at 15:30 -0300, Flavio Costa wrote:
I don't know what active-check means, unfortunatelly. If there's anything I could do in order to diagnose what's going on (a patch maybe?)
My previous mail suggested trying if this helps:
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) {
Building dovecot with your small patch, I'll provide feedback soon.
On Mon, May 11, 2009 at 3:37 PM, Timo Sirainen tss@iki.fi wrote:
I don't know what active-check means, unfortunatelly. If there's anything I could do in order to diagnose what's going on (a
On Mon, 2009-05-11 at 15:30 -0300, Flavio Costa wrote: patch
maybe?)
My previous mail suggested trying if this helps:
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) {
-- Flávio Coutinho da Costa
Guess what?! Changing that 'if' worked as charm. Both Thunderbird and Roundcube show quota perfectly!
Now a question, what's does this patch do? What active-check means? Of course that's not the proper patch, since we are only faking a 'true' condition there, maybe removing that if completely.
Anyway thanks for you help Timo!
Is 1.1.15 going to be released or there's only plans for 1.2 from now on?
On Mon, May 11, 2009 at 5:30 PM, Flavio Costa flavio.cdc@gmail.com wrote:
Building dovecot with your small patch, I'll provide feedback soon.
On Mon, May 11, 2009 at 3:37 PM, Timo Sirainen tss@iki.fi wrote:
I don't know what active-check means, unfortunatelly. If there's anything I could do in order to diagnose what's going on (a
On Mon, 2009-05-11 at 15:30 -0300, Flavio Costa wrote: patch
maybe?)
My previous mail suggested trying if this helps:
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) {
-- Flávio Coutinho da Costa
-- Flávio Coutinho da Costa
On Mon, 2009-05-11 at 17:57 -0300, Flavio Costa wrote:
Guess what?! Changing that 'if' worked as charm. Both Thunderbird and Roundcube show quota perfectly!
Now a question, what's does this patch do?
Disables checking "quota is active" flag.
What active-check means?
I've no idea really. I tried looking up from google what exactly this check does and if it's really useful or if it could just be ignored, but I didn't find anything useful.
Is 1.1.15 going to be released
Yes.
Hopefully this fix will be included =) Glad you helped me with this issue, this was really a show stopper for me to implement the quotas in my enviroment.
I'm going to dig into this little problematic flag and find out if it has any possible side effect. Maybe quota-tools guys can provide us some usefull info. I'll let you know if I find something useful.
On Mon, May 11, 2009 at 6:00 PM, Timo Sirainen tss@iki.fi wrote:
On Mon, 2009-05-11 at 17:57 -0300, Flavio Costa wrote:
Guess what?! Changing that 'if' worked as charm. Both Thunderbird and Roundcube show quota perfectly!
Now a question, what's does this patch do?
Disables checking "quota is active" flag.
What active-check means?
I've no idea really. I tried looking up from google what exactly this check does and if it's really useful or if it could just be ignored, but I didn't find anything useful.
Is 1.1.15 going to be released
Yes.
-- Flávio Coutinho da Costa
Apparently this fix was not included in 1.1.15, too bad.
On Mon, May 11, 2009 at 6:08 PM, Flavio Costa flavio.cdc@gmail.com wrote:
Hopefully this fix will be included =) Glad you helped me with this issue, this was really a show stopper for me to implement the quotas in my enviroment.
I'm going to dig into this little problematic flag and find out if it has any possible side effect. Maybe quota-tools guys can provide us some usefull info. I'll let you know if I find something useful.
On Mon, May 11, 2009 at 6:00 PM, Timo Sirainen tss@iki.fi wrote:
On Mon, 2009-05-11 at 17:57 -0300, Flavio Costa wrote:
Guess what?! Changing that 'if' worked as charm. Both Thunderbird and Roundcube show quota perfectly!
Now a question, what's does this patch do?
Disables checking "quota is active" flag.
What active-check means?
I've no idea really. I tried looking up from google what exactly this check does and if it's really useful or if it could just be ignored, but I didn't find anything useful.
Is 1.1.15 going to be released
Yes.
-- Flávio Coutinho da Costa
-- Flávio Coutinho da Costa
I don't want to add it before I know that it really is a good idea to
change it. So far I've only heard it to be broken in your system. If I
change it I might just break others' systems.
On May 17, 2009, at 11:41 PM, Flavio Costa wrote:
Apparently this fix was not included in 1.1.15, too bad.
On Mon, May 11, 2009 at 6:08 PM, Flavio Costa flavio.cdc@gmail.com
wrote: Hopefully this fix will be included =) Glad you helped me with this issue, this was really a show stopper
for me to implement the quotas in my enviroment.I'm going to dig into this little problematic flag and find out if
it has any possible side effect. Maybe quota-tools guys can provide
us some usefull info. I'll let you know if I find something useful.On Mon, May 11, 2009 at 6:00 PM, Timo Sirainen tss@iki.fi wrote: On Mon, 2009-05-11 at 17:57 -0300, Flavio Costa wrote:
Guess what?! Changing that 'if' worked as charm. Both Thunderbird and Roundcube show quota perfectly!
Now a question, what's does this patch do?
Disables checking "quota is active" flag.
What active-check means?
I've no idea really. I tried looking up from google what exactly this check does and if it's really useful or if it could just be ignored,
but I didn't find anything useful.Is 1.1.15 going to be released
Yes.
-- Flávio Coutinho da Costa
-- Flávio Coutinho da Costa
participants (2)
-
Flavio Costa
-
Timo Sirainen