We'll check this on next build. Aki
> On 02/12/2026 14:00 EET João Manoel Sobral da Costa via dovecot > <[email protected]> wrote: > > > Hello, The Dovecot CE packages from repo.dovecot.org (ce-2.4-latest, > Debian 13 "trixie", amd64) seem to be built without rquota support. > Because of this, the "fs" quota driver cannot read quota on NFS mounts. > The documentation describes NFS support for the fs driver via rquota, so > this looks like a packaging issue rather than a configuration issue. > Package ------- dovecot-core 2:2.4.5-2+debian13 (0cbb641e3e), from > https://repo.dovecot.org/ce-2.4-latest/debian/trixie # dovecot --version > 2.4.5-2+debian13 (0cbb641e3e) # dovecot --build-options Build options: > ioloop=epoll notify=inotify experimental-imap4rev2 openssl > io_block_size=8192 SQL driver plugins: mysql postgresql sqlite Passdb: > ldap pam passwd passwd-file sql Userdb: ldap(plugin) passwd prefetch > passwd-file sql Symptom ------- Mail is on an NFSv4 mount (fstype nfs4, > vers=4.2). The NFS server runs rquotad (rpcinfo shows program 100011 > versions 1 and 2, tcp and udp). # doveadm quota get -u <user> > doveadm(<user>): Error: Failed to get quota resource STORAGE: quota-fs: > quotactl(Q_GETQUOTA, <nfs-server>:/<export>) failed: No such file or > directory Quota name Type Value Limit % User STORAGE error error error > Group STORAGE error error error The plugin calls quotactl() on the NFS > device string instead of using rquota. Relevant configuration (doveconf > -n excerpt) -------------------------------------------- mail_plugins = > quota quota User { driver = fs fs_type = user } quota Group { driver = > fs fs_type = group } # doveconf -n # 2.4.5-2+debian13 (0cbb641e3e): > /etc/dovecot/dovecot.conf # Pigeonhole version 2.4.5-2+debian13 > (742bb892) # OS: Linux 6.12.118+deb13-amd64 x86_64 Debian 13.8 # > Hostname: imap.example.org # 3 default setting changes since version > 2.4.5 dovecot_config_version = 2.4.5 auth_allow_cleartext = yes > auth_cache_negative_ttl = 5 mins auth_cache_size = 10 M > auth_default_domain = example.org auth_username_format = %{user | > username | lower} auth_verbose = yes default_client_limit = 6000 > default_process_limit = 1024 default_vsz_limit = 386 M > dovecot_storage_version = 2.4.0 first_valid_gid = 1000 first_valid_uid = > 1000 ldap_auth_dn = cn=service,ou=Accounts,dc=example,dc=org > ldap_auth_dn_password = # hidden, use -P to show it ldap_base = > uid=%{user},ou=People,dc=example,dc=org ldap_scope = base ldap_uris = > ldaps://ldap.example.org lmtp_rcpt_check_quota = yes mail_driver = > maildir mail_index_path = /var/spool/indexes/%{user | username} > mail_path = ~/Maildir mail_plugins = quota mail_privileged_group = mail > mailbox_list_layout = Maildir++ protocols = imap pop3 lmtp sieve > quota_exceeded_message = <custom message> sieve_extensions { fileinto = > yes reject = yes envelope = yes encoded-character = yes vacation = yes > subaddress = yes comparator-i;ascii-numeric = yes relational = yes regex > = yes imap4flags = yes copy = yes include = yes body = yes variables = > yes enotify = yes environment = yes mailbox = yes date = yes index = yes > ihave = yes duplicate = yes mime = yes foreverypart = yes extracttext = > yes editheader = yes vnd.dovecot.filter = yes vnd.dovecot.pipe = yes } > sieve_filter_bin_dir = /etc/dovecot/sieve-filter sieve_max_actions = 4 > sieve_max_redirects = 0 sieve_max_script_size = 512K sieve_pipe_bin_dir > = /etc/dovecot/sieve-pipe sieve_plugins = sieve_extprograms namespace > inbox { inbox = yes mailbox Drafts { special_use = "\\Drafts" } mailbox > Junk { auto = subscribe special_use = "\\Junk" } mailbox Sent { auto = > subscribe special_use = "\\Sent" } mailbox "Sent Messages" { special_use > = "\\Sent" } mailbox Trash { special_use = "\\Trash" } } passdb ldap { > driver = ldap fields { user = %{ldap:uid} } bind = yes filter = > (&(accountStatus=active)) } userdb ldap { driver = ldap fields { gid = > %{ldap:gidNumber} home = %{ldap:homeDirectory} uid = %{ldap:uidNumber} } > filter = (&(objectClass=posixAccount)(uid=%{user})) } quota User { > driver = fs fs_type = user } quota Group { driver = fs fs_type = group } > sieve_script personal { active_path = /var/spool/sieve/%{user | > username}.sieve driver = file path = /var/spool/sieve/sieve.%{user | > username} } sieve_script before-0 { driver = file path = > /etc/dovecot/sieve/before.sieve type = before } sieve_script global { > driver = file path = /etc/dovecot/sieve type = global } service > imap-login { process_min_avail = 10 inet_listener imap { port = 143 } } > service imap-postlogin { executable = script-login -d > /etc/dovecot/script_login_pop3.sh } service imap { process_min_avail = > 10 } service lmtp { process_min_avail = 20 inet_listener lmtp { port = > 24 listen = 192.0.2.10 } } service managesieve-login { process_min_avail > = 10 } service managesieve { process_min_avail = 10 } service pop3-login > { process_min_avail = 5 inet_listener pop3 { port = 0 } } service pop3 { > executable = pop3 imap-postlogin process_min_avail = 5 } ssl_server { > cert_file = /etc/ssl/certs/imap.example.org.crt key_file = # hidden, use > -P to show it } protocol lmtp { mail_plugins { sieve = yes } > postmaster_address = [email protected] } protocol imap { > imap_client_workarounds = delay-newmail mail_max_userip_connections = > 100 mail_plugins { imap_quota = yes } } protocol pop3 { > pop3_client_workarounds = outlook-no-nuls oe-ns-eoh ssl_server { > cert_file = /etc/ssl/certs/pop.example.org.crt key_file = # hidden, use > -P to show it } } Evidence that rquota support is missing from the build > ------------------------------------------------------ 1. dovecot-core > 2:2.4.5-2+debian13 does not depend on libtirpc. The Debian archive > package for the same distribution (1:2.4.1+dfsg1-6+deb13u7) depends on > libtirpc3t64 (>= 1.0.2). 2. The quota plugin of the repo.dovecot.org > package contains no rquota code: # strings > /usr/lib/dovecot/modules/lib10_quota_plugin.so | grep -i rquota > quota_over_status=%d(%s) vs currently overquota=%d > maildirquota_limits_init The same check on the Debian archive package > (1:2.4.1+dfsg1-6+deb13u7) finds do_rquota_user, do_rquota_group, > xdr_rquota and "remote rquota call failed: %s". 3. With Dovecot 2.2.15 > (Debian 7), the same NFS mount, the same NFS server and the same fs > quota configuration return the expected user and group quota values. > Expected -------- The repo.dovecot.org packages are built with rquota > support (libtirpc), as the Debian archive packages are, so that the fs > quota driver works on NFS. If leaving it out is intentional, a note in > the fs quota driver documentation would help. Thanks, João > > Hello, > > The Dovecot CE packages from repo.dovecot.org (ce-2.4-latest, Debian 13 > "trixie", amd64) seem to be built without rquota support. Because of this, > the "fs" quota driver cannot read quota on NFS mounts. The documentation > describes NFS support for the fs driver via rquota, so this looks like a > packaging issue rather than a configuration issue. > > Package > ------- > dovecot-core 2:2.4.5-2+debian13 (0cbb641e3e), from > [1]https://repo.dovecot.org/ce-2.4-latest/debian/trixie > > # dovecot --version > 2.4.5-2+debian13 (0cbb641e3e) > # dovecot --build-options > Build options: ioloop=epoll notify=inotify experimental-imap4rev2 openssl > io_block_size=8192 > SQL driver plugins: mysql postgresql sqlite > Passdb: ldap pam passwd passwd-file sql > Userdb: ldap(plugin) passwd prefetch passwd-file sql > > Symptom > ------- > Mail is on an NFSv4 mount (fstype nfs4, vers=4.2). The NFS server runs > rquotad (rpcinfo shows program 100011 versions 1 and 2, tcp and udp). > > # doveadm quota get -u <user> > doveadm(<user>): Error: Failed to get quota resource STORAGE: quota-fs: > quotactl(Q_GETQUOTA, <nfs-server>:/<export>) failed: No such file or directory > Quota name Type Value Limit % > User STORAGE error error error > Group STORAGE error error error > > The plugin calls quotactl() on the NFS device string instead of using rquota. > > Relevant configuration (doveconf -n excerpt) > -------------------------------------------- > mail_plugins = quota > quota User { > driver = fs > fs_type = user > } > quota Group { > driver = fs > fs_type = group > } > > # doveconf -n > # 2.4.5-2+debian13 (0cbb641e3e): /etc/dovecot/dovecot.conf > # Pigeonhole version 2.4.5-2+debian13 (742bb892) > # OS: Linux 6.12.118+deb13-amd64 x86_64 Debian 13.8 > # Hostname: imap.example.org > # 3 default setting changes since version 2.4.5 > dovecot_config_version = 2.4.5 > auth_allow_cleartext = yes > auth_cache_negative_ttl = 5 mins > auth_cache_size = 10 M > auth_default_domain = example.org > auth_username_format = %{user | username | lower} > auth_verbose = yes > default_client_limit = 6000 > default_process_limit = 1024 > default_vsz_limit = 386 M > dovecot_storage_version = 2.4.0 > first_valid_gid = 1000 > first_valid_uid = 1000 > ldap_auth_dn = cn=service,ou=Accounts,dc=example,dc=org > ldap_auth_dn_password = # hidden, use -P to show it > ldap_base = uid=%{user},ou=People,dc=example,dc=org > ldap_scope = base > ldap_uris = [2]ldaps://ldap.example.org > lmtp_rcpt_check_quota = yes > mail_driver = maildir > mail_index_path = /var/spool/indexes/%{user | username} > mail_path = ~/Maildir > mail_plugins = quota > mail_privileged_group = mail > mailbox_list_layout = Maildir++ > protocols = imap pop3 lmtp sieve > quota_exceeded_message = <custom message> > sieve_extensions { > fileinto = yes > reject = yes > envelope = yes > encoded-character = yes > vacation = yes > subaddress = yes > comparator-i;ascii-numeric = yes > relational = yes > regex = yes > imap4flags = yes > copy = yes > include = yes > body = yes > variables = yes > enotify = yes > environment = yes > mailbox = yes > date = yes > index = yes > ihave = yes > duplicate = yes > mime = yes > foreverypart = yes > extracttext = yes > editheader = yes > vnd.dovecot.filter = yes > vnd.dovecot.pipe = yes > } > sieve_filter_bin_dir = /etc/dovecot/sieve-filter > sieve_max_actions = 4 > sieve_max_redirects = 0 > sieve_max_script_size = 512K > sieve_pipe_bin_dir = /etc/dovecot/sieve-pipe > sieve_plugins = sieve_extprograms > namespace inbox { > inbox = yes > mailbox Drafts { > special_use = "\\Drafts" > } > mailbox Junk { > auto = subscribe > special_use = "\\Junk" > } > mailbox Sent { > auto = subscribe > special_use = "\\Sent" > } > mailbox "Sent Messages" { > special_use = "\\Sent" > } > mailbox Trash { > special_use = "\\Trash" > } > } > passdb ldap { > driver = ldap > fields { > user = %{[3]ldap:uid} > } > bind = yes > filter = (&(accountStatus=active)) > } > userdb ldap { > driver = ldap > fields { > gid = %{[4]ldap:gidNumber} > home = %{[5]ldap:homeDirectory} > uid = %{[6]ldap:uidNumber} > } > filter = (&(objectClass=posixAccount)(uid=%{user})) > } > quota User { > driver = fs > fs_type = user > } > quota Group { > driver = fs > fs_type = group > } > sieve_script personal { > active_path = /var/spool/sieve/%{user | username}.sieve > driver = file > path = /var/spool/sieve/sieve.%{user | username} > } > sieve_script before-0 { > driver = file > path = /etc/dovecot/sieve/before.sieve > type = before > } > sieve_script global { > driver = file > path = /etc/dovecot/sieve > type = global > } > service imap-login { > process_min_avail = 10 > inet_listener imap { > port = 143 > } > } > service imap-postlogin { > executable = script-login -d /etc/dovecot/script_login_pop3.sh > } > service imap { > process_min_avail = 10 > } > service lmtp { > process_min_avail = 20 > inet_listener lmtp { > port = 24 > listen = 192.0.2.10 > } > } > service managesieve-login { > process_min_avail = 10 > } > service managesieve { > process_min_avail = 10 > } > service pop3-login { > process_min_avail = 5 > inet_listener pop3 { > port = 0 > } > } > service pop3 { > executable = pop3 imap-postlogin > process_min_avail = 5 > } > ssl_server { > cert_file = /etc/ssl/certs/imap.example.org.crt > key_file = # hidden, use -P to show it > } > protocol lmtp { > mail_plugins { > sieve = yes > } > postmaster_address = [7][email protected] > } > protocol imap { > imap_client_workarounds = delay-newmail > mail_max_userip_connections = 100 > mail_plugins { > imap_quota = yes > } > } > protocol pop3 { > pop3_client_workarounds = outlook-no-nuls oe-ns-eoh > ssl_server { > cert_file = /etc/ssl/certs/pop.example.org.crt > key_file = # hidden, use -P to show it > } > } > > Evidence that rquota support is missing from the build > ------------------------------------------------------ > 1. dovecot-core 2:2.4.5-2+debian13 does not depend on libtirpc. The Debian > archive package for the same distribution (1:2.4.1+dfsg1-6+deb13u7) > depends on libtirpc3t64 (>= 1.0.2). > > 2. The quota plugin of the repo.dovecot.org package contains no rquota code: > > # strings /usr/lib/dovecot/modules/lib10_quota_plugin.so | grep -i rquota > quota_over_status=%d(%s) vs currently overquota=%d > maildirquota_limits_init > > The same check on the Debian archive package (1:2.4.1+dfsg1-6+deb13u7) > finds do_rquota_user, do_rquota_group, xdr_rquota and > "remote rquota call failed: %s". > > 3. With Dovecot 2.2.15 (Debian 7), the same NFS mount, the same NFS server > and the same fs quota configuration return the expected user and group > quota values. > > Expected > -------- > The repo.dovecot.org packages are built with rquota support (libtirpc), as > the Debian archive packages are, so that the fs quota driver works on NFS. > If leaving it out is intentional, a note in the fs quota driver documentation > would help. > > Thanks, > Joao > > References > > Visible links > 1. https://repo.dovecot.org/ce-2.4-latest/debian/trixie > 2. file:///tmp/tmppkfqdygh/ldaps:/ldap.example.org > 3. file:///tmp/tmppkfqdygh/ldap:uid > 4. file:///tmp/tmppkfqdygh/ldap:gidNumber > 5. file:///tmp/tmppkfqdygh/ldap:homeDirectory > 6. file:///tmp/tmppkfqdygh/ldap:uidNumber > 7. mailto:[email protected] > _______________________________________________ > dovecot mailing list -- [email protected] > To unsubscribe send an email to [email protected] _______________________________________________ dovecot mailing list -- [email protected] To unsubscribe send an email to [email protected]
