Grandy Fu
2008-Jul-10 07:28 UTC
[Dovecot] fs quota check with server does not support rquotad
Hi,
Last time, I have got no reply, hope this time is better.
OS: Solaris 10
Dovecot version : 1.1.1
file system of /var/mail : NFS from Solaris
file system of /home : other NFS server that not support rquotad.
Here is my setting that works:
----------------------------
plugin {
quota = fs:INBOX:mount=/var/mail
quota2 = fs:home:noenforcing:mount=/home/h1
}
The above settings works. Dovecot able to report the quota information
on /var/mail. However, when I try to append some mail to mail folders on
my home drive, dovecot will produce following errors. The mail will be
appended multiple times until I kill my mail client.
-----------------dovecot log--------------
dovecot: Jul 02 09:44:23 Info: IMAP(01234567g): quota-fs: host=mailsvr,
path=/var/mail, uid=3475
dovecot: Jul 02 09:44:23 Info: IMAP(01234567g): quota-fs: uid=3475,
value=10240, limit=1024000, active=1
dovecot: Jul 02 09:44:23 Info: IMAP(01234567g): quota-fs: host=homesvr,
path=/home, uid=3475
dovecot: Jul 02 09:44:23 Error: IMAP(01234567g): quota-fs: could not
contact RPC service on homesvr
dovecot: Jul 02 09:44:30 Warning: Killed with signal 15
---------------------------------------
--
Regards,
Grandy
(CNE, MCSE, CCNA, SCSA,SCNA, CISSP)
************************************
* Technical Support Team
* Dept. of Computing, HKPU
* e-mail: cswfu at comp.polyu.edu.hk
* ROOM: QT403, HKPU
* TEL: (852)2766-7306
* FAX: (852)2170-0145
************************************
Ralf Becker
2008-Jul-10 08:44 UTC
[Dovecot] fs quota check with server does not support rquotad
It seems that a RPC call fails because rquotas are not supported on
'homesvr'. But dovecots quota-fs requires them for remote storage.
You may verify this also using perl:
perl -e 'use Quota; print Quota::rpcquery("homesvr",
"/home"),"\n";'
To test if perl-Qouta will report any quotas for '/home/h1' at all you
may use:
perl -e 'use Quota; print
join(",",Quota::query(Quota::getqcarg("/home/h1"))),"\n";'
Regards, Ralf
Grandy Fu schrieb am 10.07.2008 09:28:> Hi,
>
> Last time, I have got no reply, hope this time is better.
>
>
> OS: Solaris 10
> Dovecot version : 1.1.1
> file system of /var/mail : NFS from Solaris
> file system of /home : other NFS server that not support rquotad.
>
>
> Here is my setting that works:
> ----------------------------
> plugin {
> quota = fs:INBOX:mount=/var/mail
> quota2 = fs:home:noenforcing:mount=/home/h1
> }
>
> The above settings works. Dovecot able to report the quota information
> on /var/mail. However, when I try to append some mail to mail folders on
> my home drive, dovecot will produce following errors. The mail will be
> appended multiple times until I kill my mail client.
>
> -----------------dovecot log--------------
>
> dovecot: Jul 02 09:44:23 Info: IMAP(01234567g): quota-fs: host=mailsvr,
> path=/var/mail, uid=3475
> dovecot: Jul 02 09:44:23 Info: IMAP(01234567g): quota-fs: uid=3475,
> value=10240, limit=1024000, active=1
> dovecot: Jul 02 09:44:23 Info: IMAP(01234567g): quota-fs: host=homesvr,
> path=/home, uid=3475
> dovecot: Jul 02 09:44:23 Error: IMAP(01234567g): quota-fs: could not
> contact RPC service on homesvr
> dovecot: Jul 02 09:44:30 Warning: Killed with signal 15
> ---------------------------------------
>
>
--
______________________________________________________________________
Dipl.-Inform. (FH) Ralf Becker Rechenzentrum (r/ft) der FH Trier
(Network|Mail|Web|Firewall) University of applied sciences
Administrator Schneidershof, D-54293 Trier
Mail: beckerr at fh-trier.de Fon: +49 651 8103 499
Web: http://www.fh-trier.de/~beckerr Fax: +49 651 8103 214
PubKey: http://www.fh-trier.de/~beckerr Crypto: GnuPG, S/MIME
______________________________________________________________________
Wenn Gott gewollt haette, dass E-Mail in HTML geschrieben wuerden,
endeten Gebete traditionell mit </amen>. (Tom Listen)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6074 bytes
Desc: S/MIME Cryptographic Signature
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20080710/d66427e7/attachment-0002.bin>
Grandy Fu
2008-Jul-14 04:00 UTC
[Dovecot] fs quota check with server does not support rquotad
Both Test 1 and Test 2 disconnected me immediately after login with error: --------------------- dovecot: Jul 14 11:39:19 Info: IMAP(01234567g): Quota root: name=INBOX backend=fs args=noenforcing:mount=/var/mail dovecot: Jul 14 11:39:19 Info: IMAP(01234567g): mbox: data=/home/h1/sc/01234567g/mail:INBOX=/var/mail/01234567g:INDEX=/localdisk/dovecot.cache/cache/01234567g dovecot: Jul 14 11:39:19 Info: IMAP(01234567g): fs: root=/home/h1/sc/01234567g/mail, index=/localdisk/dovecot.cache/cache/01234567g, control=, inbox=/var/mail/01234567g dovecot: Jul 14 11:39:19 Info: IMAP(01234567g): fs quota add storage dir = /home/h1/sc/01234567g/mail dovecot: Jul 14 11:39:19 Info: IMAP(01234567g): fs quota block device = homesvr:/h1 dovecot: Jul 14 11:39:19 Info: IMAP(01234567g): fs quota mount point = /home/h1 dovecot: Jul 14 11:39:19 Error: IMAP(01234567g): fcntl(0, F_GETFL) failed: Bad file number dovecot: Jul 14 11:39:19 Fatal: IMAP(01234567g): fd_set_nonblock(0) failed: Bad file number dovecot: Jul 14 11:43:27 Warning: Killed with signal 15 ------------------------------------------- Test 3: Command and output ----------------- getquotaroot "Trash" * QUOTAROOT "Trash" "INBOX" * QUOTA "INBOX" (STORAGE 10 1000) OK Getquotaroot completed. --------------------- At the same time log shows: ------------------------ dovecot: Jul 14 11:52:51 Info: IMAP(01234567g): quota-fs: host=mailsvr, path=/var/mail, uid=3475 dovecot: Jul 14 11:52:51 Info: IMAP(01234567g): quota-fs: uid=3475, value=10240, limit=1024000, active=1 dovecot: Jul 14 11:52:51 Info: IMAP(01234567g): quota-fs: host=homesvr, path=/h1, uid=3475 dovecot: Jul 14 11:52:51 Error: IMAP(01234567g): quota-fs: could not contact RPC service on homesvr dovecot: Jul 14 11:52:51 Info: IMAP(01234567g): quota-fs: host=mailsvr, path=/var/mail, uid=3475 dovecot: Jul 14 11:52:51 Info: IMAP(01234567g): quota-fs: uid=3475, value=10240, limit=1024000, active=1 dovecot: Jul 14 11:52:51 Info: IMAP(01234567g): quota-fs: host=mailsvr, path=/var/mail, uid=3475 dovecot: Jul 14 11:52:51 Info: IMAP(01234567g): quota-fs: uid=3475, value=10240, limit=1024000, active=1 dovecot: Jul 14 11:52:51 Info: IMAP(01234567g): quota-fs: host=homesvr, path=/h1, uid=3475 dovecot: Jul 14 11:52:51 Error: IMAP(01234567g): quota-fs: could not contact RPC service on homesvr -------------------------------- Grandy> mmmh... > > so you are using: > > plugin { > quota = fs:INBOX:mount=/var/mail > quota2 = fs:home:noenforcing:mount=/home/h1 > } > > but "fs:home:noenforcing:mount=/home/h1" will not work and you just > added it do make "fs:INBOX:mount=/var/mail" work? Maybe it's worth to > have a closer look to this first: > > Test 1) > > Use: > > plugin { > quota = fs:INBOX:mount=/var/mail > #quota2 = fs:home:noenforcing:mount=/home/h1 > } > > What output generates: > > telnet <your-imp-server> 143 > - login <your-login-name> <your-password> > - getguotaroot "INBOX" > - getquotaroot "Trash" > . logout > > Test 2) > > Use: > > plugin { > quota = fs:INBOX:mount=/var/mail > #quota2 = fs:home:noenforcing:mount=/home/h1 > } > > What output generates: > > telnet <your-imp-server> 143 > - login <your-login-name> <your-password> > - getguotaroot "INBOX" > - getquotaroot "Trash" > . logout > > > Test 3) > Use: > > plugin { > quota = fs:INBOX:mount=/var/mail > quota2 = fs:home:noenforcing:mount=/home/h1 > } > > What output generates: > > telnet <your-imp-server> 143 > - login <your-login-name> <your-password> > - getguotaroot "INBOX" > - getquotaroot "Trash" > . logout > > > BTW: I've you don't like to send your password unencrypted use this > instead of 'telnet <your-imp-server> 143': > > openssl s_client -connect <your-imp-server>:993 > > > Regards, Ralf >
Grandy Fu
2008-Jul-15 10:17 UTC
[Dovecot] fs quota check with server does not support rquotad
> > > So my understanding for now is this: > > /var/mail > --------- > * has quotas > * for mailboxes hosted by this file system 'getrootquota' should > report used/total quota sizes. > > /home/h1 > -------- > * has or has not quotas. This is the same, because if 'homesvr' > doesn't support rquota, you can't check or even ignore > them. > * for mailboxes hosted by this file system 'getrootquota' should > report nothing. > >Yes, this is my situation.> If this is correct, this problem should be covered by a patch I've send > to Timo two days ago. You may have a look at this: > > http://dovecot.markmail.org/message/7e6bev4l3hen57ii?q=Multiple+quota+roots+with+quota-fs+backend > >Great. d/led "dovecot-*quota*-*root*-matching.patch.gz " and patched. Here is my current configuration: mail_location = mbox:~/mail:INBOX=/var/mail/%u plugin { quota = fs:INBOX:mount=/var/mail } I don't know if I patched correctly or not. I have got this error when I login: ----------------------- dovecot: Jul 15 18:13:20 Info: imap-login: Login: user=<01234567g>, method=PLAIN, rip=158.132.10.68, lip=158.132.10.13 dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): Loading modules from directory: /usr/local/.dovecot111.test/lib/dovecot/imap dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): Module loaded: /usr/local/.dovecot111.test/lib/dovecot/imap/lib10_quota_plugin.so dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): Module loaded: /usr/local/.dovecot111.test/lib/dovecot/imap/lib11_imap_quota_plugin.so dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): Effective uid=3475, gid=70, home=/home/h1/sc/01234567g dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): Quota root: name=INBOX backend=fs args=mount=/var/mail dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): mbox: data=/home/h1/sc/01234567g/mail:INBOX=/var/mail/01234567g:INDEX=/localdisk/dovecot.cache/cache/01234567g dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): fs: root=/home/h1/sc/01234567g/mail, index=/localdisk/dovecot.cache/cache/01234567g, control=, inbox=/var/mail/01234567g dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): fs quota add storage dir = /home/h1/sc/01234567g/mail dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): fs quota block device = homesvr:/h1 dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): fs quota mount point = /home/h1 dovecot: Jul 15 18:13:21 Error: IMAP(01234567g): fcntl(0, F_GETFL) failed: Bad file number dovecot: Jul 15 18:13:21 Fatal: IMAP(01234567g): fd_set_nonblock(0) failed: Bad file number ------------------------------------------------------------