[Dovecot] strange quota error
i have a dovecot setup that uses an nfs backend to store maildir data. i want to enforce fs quotas, but whenever theyre selected and i attempt to query them from thunderbird...this appears in the log
quotactl(Q_GETQUOTA, /.amd_mnt/crock/vol/v_user1/jdoe) failed: Operation not supported
i also occasionally see this.
dovecot: statfs(/users/jdoe/Maildir) failed: Permission denied
i can manually query quotas from a terminal on the mail system though.
heh, sorry bout that.
[root@seshat ~]# dovecot --version 1.0.10
/usr/local/sbin/dovecot -n # 1.0.10: /usr/local/etc/dovecot.conf protocols: imaps ssl_cert_file: /etc/ssl/dovecot/newcert.pem ssl_key_file: /etc/ssl/dovecot/newkey.pem login_dir: /var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login verbose_proctitle: yes first_valid_gid: 0 mail_location: maildir:/users/%u/Maildir mmap_disable: yes mail_plugins: quota imap_quota imap_client_workarounds: delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep auth default: mechanisms: plain login passdb: driver: pam userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix plugin: quota: fs FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Wed Jun 4 08:51:24 EDT 2008 amd64
----- Original Message ----- From: Charles Marcus CMarcus@Media-Brokers.com Date: Wednesday, June 4, 2008 12:13 Subject: Re: [Dovecot] strange quota error To: dovecot@dovecot.org
On 6/4/2008, JOHN ROMAN (cicero@insightbb.com) wrote:
i also occasionally see this.
dovecot: statfs(/users/jdoe/Maildir) failed: Permission denied
Maybe a little more info would be helpful?
Version? dovecot -n output?
--
Best regards,
Charles
El Miércoles, 4 de Junio de 2008 a las 19:02, JOHN ROMAN escribió:
[root@seshat ~]# dovecot --version 1.0.10
1.0 doesn't support fs quota for nfs mounted filesystems. You can get it patching the sources. I do this this way (quick & dirt translation of my spanish docs) -tested with 1.0.13-:
- Get dovecot's sources
- Get the following patches:
http://hg.dovecot.org/dovecot-1.1/raw-rev/078d9dde99c8 http://hg.dovecot.org/dovecot-1.1/raw-rev/abec53314897 http://hg.dovecot.org/dovecot-1.1/raw-rev/0dda1f746d63
(I save them as rquota{1,2,3}.diff)
In the last one, some changes are needed:
"In particular the final patch for src/plugins/quota/Makefile.am needs to be changed from
if HAVE_RQUOTA
+quota-fs.c: rquota_xdr.c
+
rquota_xdr.c: Makefile
to
if HAVE_RQUOTA
+$(srcdir)/quota-fs.c: rquota_xdr.c
+
rquota_xdr.c: Makefile
"
and then:
$ tar zxvf dovecot-1.0.13.tar.gz $ ln -s dovecot-1.0.13 a $ patch -p0 < rquota1.diff $ patch -p0 < rquota2.diff $ patch -p0 < rquota3.diff $ cd dovecot-1.0.13 $ export SED=/bin/sed $ autoconf $ autoheader $ aclocal $ automake $ ./configure --with-ldap $ make
HTH
Aaaaaaaaaaagur.
Joseba Torre. CIDIR Bizkaia.
participants (3)
-
Charles Marcus
-
JOHN ROMAN
-
Joseba Torre