[Dovecot] Attribute Cache flush errors on FreeBSD 8.2

Phil Kernick phil at kernick.org
Sat Jan 7 02:21:53 EET 2012


I'm running dovecot 2.0.16 on FreeBSD 8.2 with the mail spool and 
indexes on an NFS server.

Lines like the following keep appearing in syslog for access to each 
mailbox:

Error: nfs_flush_attr_cache_fd_locked: fchown(/home/philk/Mail/Deleted) 
failed: Bad file descriptor

This is coming from nfs-workarounds.c line 210, which tracing back seems 
to be coming from the call to mbox_lock on 
lib-storage/index/mbox/mbox-lock.c line 774.

I have /home mounted with options 
acregmin=0,acregmax=0,acdirmin=0,acdirmax=0 (as FreeBSD doesn't have a 
noac option), but it throws the same error either way.

The output of dovecot -n is below.



Phil.


# 2.0.16: /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 8.2-RELEASE-p3 i386
auth_mechanisms = plain login
auth_username_format = %Lu
disable_plaintext_auth = no
first_valid_gid = 1000
first_valid_uid = 1000
listen = *, [::]
mail_fsync = always
mail_location = mbox:~/Mail/:INBOX=/var/mail/%u
mail_nfs_index = yes
mail_nfs_storage = yes
mail_privileged_group = mail
mmap_disable = yes
passdb {
   args = session=yes dovecot
   driver = pam
}
protocols = imap pop3
service auth {
   unix_listener /var/spool/postfix/private/auth {
     group = postfix
     mode = 0660
     user = postfix
   }
   user = root
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
   args = blocking=yes
   driver = passwd
}
verbose_proctitle = yes
protocol imap {
   imap_client_workarounds = delay-newmail tb-extra-mailbox-sep
}
protocol pop3 {
   pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
   pop3_uidl_format = %08Xu%08Xv
}
protocol lda {
   postmaster_address = postmaster at example.com
   sendmail_path = /usr/sbin/sendmail
}




More information about the dovecot mailing list