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.14I'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 -------------- next part -------------- A non-text attachment was scrubbed... Name: dovecot-login.log Type: text/x-log Size: 2988 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20090506/8c646d48/attachment-0004.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: dovecot-n.output Type: application/octet-stream Size: 1233 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20090506/8c646d48/attachment-0002.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: dovecot-deliver.log Type: text/x-log Size: 1885 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20090506/8c646d48/attachment-0005.bin>
No one? On Wed, May 6, 2009 at 1:23 PM, Flavio Costa <flavio.cdc at 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.141.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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20090510/7f8024fa/attachment-0002.bin>
Thanks for your reply, I'll be waiting for your awnser. On Sun, May 10, 2009 at 4:25 PM, geoffroy desvernay < dgeo at 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
Matthias Saou
2009-May-11 11:22 UTC
[Dovecot] Filesystem quota not working (was: Re: Quota over NFS)
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
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=0Dovecot 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) { -------------- 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/20090511/07363f99/attachment-0002.bin>
I have accidentaly reply only to Timo, so I'm forwarding to discussion back to the list. Sorry! ---------- Forwarded message ---------- From: Timo Sirainen <tss at iki.fi> Date: Mon, May 11, 2009 at 3:12 PM Subject: Re: [Dovecot] Quota over NFS To: Flavio Costa <flavio.cdc at 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 at 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 196 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20090511/0791b7c2/attachment-0002.bin>
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 at 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 at iki.fi> > Date: Mon, May 11, 2009 at 3:12 PM > Subject: Re: [Dovecot] Quota over NFS > To: Flavio Costa <flavio.cdc at 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 at 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