On Fri, 28 Mar 2025 08:36:08 +0100
Florian Piekert via Postfix-users <postfix-users@postfix.org> wrote:

> Hello Paul,
> 
> is there the chance of storage hardware failures? Or VPS I/O issues
> in case it is on a VPS?
> 

Hi,
seems unlikely. My first guess was also slowed I/O due to backup. But
now backup is over and I/O (no notable I/O wait) looks fine.
mdadm and (filesystem(ext4) is on a RAID 10 using 4 SATA-HDDs) smart
data seems ok. nothing at all in dmesg.

But i noticed following on restart of dovecot:
systemd[1]: Started Dovecot IMAP/POP3 email server.
dovecot[5393]: master: Dovecot v2.2.36 (1f10bfa63) starting up for imap, pop3 
(core dumps disabled)
dovecot[5393]: master: Error:
file_dotlock_open(/var/lib/dovecot/instances) failed: Resource temporarily 
unavailable

but looking through old logfiles it showed up for a long time before I
had issues.

I added the following to dovecot-config:
conf.d/10-mail.conf:# used only with INBOX when either its initial creation or 
dotlocking fails.
conf.d/10-mail.conf:# Rely on O_EXCL to work when creating dotlock files. NFS 
supports O_EXCL
conf.d/10-mail.conf:dotlock_use_excl = yes
conf.d/10-mail.conf:# Locking method for index files. Alternatives are fcntl, 
flock and dotlock.
conf.d/10-mail.conf:# Dotlocking uses some tricks which may create more disk 
I/O than other locking
conf.d/10-mail.conf:lock_method = dotlock 
conf.d/10-mail.conf:#  dotlock: Create <mailbox>.lock file. This is the oldest 
and most NFS-safe
conf.d/10-mail.conf:#  dotlock_try: Same as dotlock, but if it fails because of 
permissions or
conf.d/10-mail.conf:mbox_write_locks = dotlock fcntl

error message still present - but the issue seems to be resolved.
flooded my mailbox with command mail and did imap lists simultaneously.
hope this was it.

Thank you

Paul


> 
> Am 28.03.2025 um 07:50 schrieb Paul Neuwirth via Postfix-users:
> > Hello group,
> > 
> > Since a few days I have massive problems with lockfiles blocking the
> > mailboxes (type storage, /var/mail/user).
> > don't know if it's the right list. may more concern dovecot.
> > 
> > postqueue is full of
> > 944C223FC2    17905 Fri Mar 28 06:02:01  XXX
> > (cannot update mailbox /var/mail/pane for user XXX. unable to create
> > lock file /var/mail/XXX.lock: File exists) XXX
> > 
> > 6530223FC9     3597 Fri Mar 28 06:11:46  XXX
> > (cannot update mailbox /var/mail/XXX for user XXX. unable to lock
> > for exclusive access: Resource temporarily unavailable) XXX
> > 
> > and messages get delivered, but after ages.
> > 
> > most of the time lsof /var/mail/XXX shows one to two processes of
> > dovecot/imap
> > 
> > There were no configuration changes at the point the problem
> > started.
> > 
> > Do you have ideas or tips how to debug this further?
> > or should I look for a dovecot mail list?
> > 
> > Thank you
> > 
> > Paul  
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to