[Dovecot] fs quota check with server does not support rquotad

Ralf Becker beckerr at fh-trier.de
Tue Jul 15 15:08:30 EEST 2008


I can't help you with this messages

 > 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

It seems that they are produced by "int fd_set_nonblock(int fd, bool 
nonblock)" in ./lib/fd-set-nonblock.c while '0' is the fileno of STDIN.


Grandy Fu schrieb am 15.07.2008 12:17:
>>
>>
>> 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
> ------------------------------------------------------------
> 
> 

-- 
______________________________________________________________________

  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/20080715/fdd8d0d8/attachment.bin 


More information about the dovecot mailing list