[Dovecot] windows live mail + dovecot and nfs

Anes Muhametov dovecot at anes.su
Fri Apr 9 11:11:27 EEST 2010


Hi all. My clients have got problem accessing dovecot by "Windows live 
mail (Windows 7)" client. The problem is that users can't delete two or 
more folders one-by-one.

There is no errors deleting first folder (new dir 
/storage/vol1/mail/domain/user/Maildir/..DOVECOT-TRASHED appeared and 
wasn't deleted). If I try to delete second one, error occurs (user, 
domain, IP address changed):

dovecot: IMAP(user at domain): 
unlink_directory(/storage/vol1/mail/domain/user/Maildir/..DOVECOT-TRASHED) 
failed: Directory not empty



I'm using dovecot 1.2.10 @FreeBSD 7.2-RELEASE-p1 amd64 and NFS storage 
backend.

dovecot -n
# 1.2.10: /usr/local/etc/dovecot.conf
# OS: FreeBSD 7.2-RELEASE-p1 amd64
syslog_facility: local7
protocols: imap imaps pop3 pop3s
ssl_cert_file: /etc/ssl/1.crt
ssl_key_file: /etc/ssl/1.key.unsec
disable_plaintext_auth: no
verbose_ssl: yes
shutdown_clients: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_greeting: mail server ready.
login_process_per_connection: no
login_process_size: 512
login_processes_count: 60
login_max_processes_count: 256
login_max_connections: 100
max_mail_processes: 4096
mail_max_userip_connections(default): 50
mail_max_userip_connections(imap): 50
mail_max_userip_connections(pop3): 30
verbose_proctitle: yes
first_valid_uid: 90
last_valid_uid: 90
first_valid_gid: 90
last_valid_gid: 90
mail_privileged_group: mail
mail_location: maildir:%h/Maildir
mmap_disable: yes
mail_nfs_storage: yes
mail_nfs_index: yes
lock_method: dotlock
maildir_copy_preserve_filename: yes
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_process_size: 128
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail outlook-idle 
netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh 
tb-extra-mailbox-sep
imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
lda:
  postmaster_address: postmaster at domain.ru
  mail_plugins: quota
  sendmail_path: /usr/sbin/sendmail
  log_path: /var/log/dovecot/deliver.log
  info_log_path: /var/log/dovecot/deliver.log
auth default:
  mechanisms: plain login cram-md5
  cache_size: 262144
  cache_ttl: 180
  cache_negative_ttl: 60
  failure_delay: 1
  worker_max_count: 2000
  process_size: 512
  passdb:
    driver: sql
    args: /usr/local/etc/dovecot-sql.conf
  userdb:
    driver: prefetch
  userdb:
    driver: sql
    args: /usr/local/etc/dovecot-sql.conf
  socket:
    type: listen
    master:
      path: /var/run/dovecot/auth-master
      mode: 384
      user: user
      group: domain
plugin:
  quota: maildir:Quota


Here is listing of ..DOVECOT-TRASHED:

ls -la /storage/vol1/mail/domain/user/Maildir/..DOVECOT-TRASHED:
total 16
drwx------   2 user user 4096 Apr  9 11:32 .
drwx------  27 user user 8192 Apr  9 11:41 ..
-rw-------   1 user user   156 Apr  9 11:32 .nfs.014cd02e.ffffd11b4.4
-rw-------   1 user user 17 Apr  9 11:32 .nfs.014cd031.ffffd11b4.4

fstat output:

[root@ /storage/vol1/mail/domain/user/Maildir/..DOVECOT-TRASHED]# fstat .*
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
root     fstat      82081   wd /storage/vol1 32454159 drwx------    
4096  r  .
user imap       53042    7 /storage/vol1 40573622 -rw-------     156 rw  
.nfs.014cd02e.ffffd11b4.4
user  imap       53042    9 /storage/vol1 40573631 -rw-------      17 
rw  .nfs.014cd031.ffffd11b4.4
root     bash       22223   wd /storage/vol1 32454159 drwx------    
4096  r  .

# ps uxwa|grep user

user 53042  0.0  0.1  9812  2400  ??  S    11:31AM   0:00.02 imap 
[user at domain 1.1.1.1]
user  53650  0.0  0.1 10836  2908  ??  S    11:32AM   0:00.05 imap 
[user at domain 1.1.1.1]


It seems like first imap process locked ..DOVECOT-TRASHED.


Best regards
Anes Muhametoc.



More information about the dovecot mailing list