Re: [Dovecot] Error: NO Mailbox is locked

2009-10-29 Thread Giovanni Mancuso
Timo Sirainen wrote:
> Do you have more than one Dovecot instance accessing the mailboxes in NFS 
> server? 
>   
Yes, I have two Dovecot istance that accessing in mailboxes.
I have a balancer that balance traffic to imap server.

Bye


Re: [Dovecot] Error: NO Mailbox is locked

2009-10-27 Thread Timo Sirainen
On Fri, 2009-10-16 at 13:48 +0200, Giovanni Mancuso wrote:
> In dovecot log, i have:
> 
> Error: IMAP(em...@domain.com): nfs_flush_fcntl:
> fcntl(/maildirs/domain.com/user/Maildir/dovecot.index.cache, F_RDLCK)
> failed: Interrupted system call

If your NFS lockd doesn't work fast enough or well enough I guess NFS
cache flushes can cause problems like these.. Do you have more than one
Dovecot instance accessing the mailboxes in NFS server? If not, just
remove mail_nfs_*=yes settings and this should go away.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Error: NO Mailbox is locked

2009-10-16 Thread Giovanni Mancuso
In dovecot log, i have:

Error: IMAP(em...@domain.com): nfs_flush_fcntl:
fcntl(/maildirs/domain.com/user/Maildir/dovecot.index.cache, F_RDLCK)
failed: Interrupted system call

The maildirs are relatively small (200MB approximately), but they have
many messages (6000-7000 for each one)

My dovecot version is 1.1.13.

Thanks

Timo Sirainen wrote:
> On Tue, 2009-10-13 at 14:55 +0200, Giovanni Mancuso wrote:
>   
>> i migrate an imap server from courier-imap to dovecot 1.1.13. After the
>> migration i have often this error in imap communication:
>>
>> * NO Mailbox is locked, will abort in 122 seconds
>> * NO Mailbox is locked, will abort in 92 seconds
>> 
>
> Anything in Dovecot's error logs (http://wiki.dovecot.org/Logging)? How
> large are these maildirs where it happens?
>   



Re: [Dovecot] Error: NO Mailbox is locked

2009-10-15 Thread Timo Sirainen
On Tue, 2009-10-13 at 14:55 +0200, Giovanni Mancuso wrote:
> i migrate an imap server from courier-imap to dovecot 1.1.13. After the
> migration i have often this error in imap communication:
> 
> * NO Mailbox is locked, will abort in 122 seconds
> * NO Mailbox is locked, will abort in 92 seconds

Anything in Dovecot's error logs (http://wiki.dovecot.org/Logging)? How
large are these maildirs where it happens?


signature.asc
Description: This is a digitally signed message part


[Dovecot] Error: NO Mailbox is locked

2009-10-13 Thread Giovanni Mancuso
Hi to all,

i migrate an imap server from courier-imap to dovecot 1.1.13. After the
migration i have often this error in imap communication:

* NO Mailbox is locked, will abort in 122 seconds
* NO Mailbox is locked, will abort in 92 seconds
* NO Mailbox is locked, will abort in 62 seconds
* NO Mailbox is locked, will abort in 32 seconds

I use maildir and all data are in nfs server.

My dovecot configuration is:

protocols = imap pop3 imaps pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "
ssl_cert_file = /opt/dovecot/certs/imapd.pem
ssl_key_file = /opt/dovecot/certs/imapd.pem
login_user = dovecot
mail_location =  maildir:%h/Maildir
mail_uid = 104
mail_gid = 102
mail_privileged_group = vmail
first_valid_uid = 0
last_valid_uid = 0
first_valid_gid = 0
last_valid_gid = 0
ssl_disable = no
disable_plaintext_auth = no
mail_drop_priv_before_exec=yes
log_path = /opt/dovecot/logs/dovecot.log
mail_nfs_index = yes
mail_nfs_storage = yes
mmap_disable = yes

protocol imap {
  listen = *:143
  mail_plugins =  quota imap_quota
  ssl_listen = *:993
  mail_executable = /opt/dovecot/libexec/dovecot/automigrateimap
}

protocol pop3 {
  listen = *:110
  pop3_uidl_format = UID%u-%v
  ssl_listen = *:995
  mail_executable = /opt/dovecot/libexec/dovecot/automigratepop3
  mail_plugins =  quota
}

auth_debug = yes
auth_debug_passwords = yes
auth default {
  mechanisms = plain
#  passdb pam {
#  }
  passdb ldap {
args = /opt/dovecot/etc/dovecot-ldap.conf
  }
#  userdb passwd {
#  }
  userdb ldap {
args = /opt/dovecot/etc/dovecot-ldap.conf
  }
  user = root
}

dict {
}

plugin {
  quota = maildir
  quota_rule2 = Trash:storage=100M
}

namespace private {
  separator = .
  prefix = INBOX.
  inbox = yes
}


Have You any idea?

Thanks