On Fri, 28 Mar 2025 12:41:45 -0400 (EDT) Wietse Venema via Postfix-users <postfix-users@postfix.org> wrote:
> 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 > > That looks like a Postfix error message (*). > > Are you using Postfix to deliver mail, and Dovecot to read mail? > > Wietse > > (*) The function dot_lockfile() produces the text "unable to create > lock file /var/mail/XXX.lock: File exists)", and the function > deliver_mailbox_file() prepends the text "cannot update mailbox > /var/mail/XXX for user XXX." > _______________________________________________ yes, that's right from /var/log/mail on last restart: 2025-03-29T06:24:41.124754+01:00 XXX dovecot: master: Error: fstat(/var/lib/dovecot/instances.lock) failed: No such file or directory 2025-03-29T06:24:41.125299+01:00 XXX dovecot: master: Error: file_dotlock_open(/var/lib/dovecot/instances) failed: No such file or directory files do exists, I even made folder and files world-readable to check, they are owned by root:root # ls -la /var/lib/dovecot/ total 20 drwxr-xr-x 2 root root 100 Mar 29 06:24 . drwxr-xr-x 151 root root 4096 Mar 28 21:16 .. -rw------- 1 root root 0 Feb 14 2010 auth-success -rw-r--r-- 1 root root 62 Apr 16 2020 instances -rw-r--r-- 1 root root 0 Mar 29 06:24 instances.lock -rw-r--r-- 1 root root 211 Jan 22 2017 mounts -rw-r--r-- 1 root root 230 Jan 22 2017 ssl-parameters.dat Regards, Paul P.S.: Just remembered, I had a kernel panic a few days ago - so I thought maybe the locking problem is indeed a filesystem problem. Tried to boot to a live-CD to do a fsck. But the live cd failed to initialize all SATA-controllers. trying to reset multiple times with errcode:-85 ?? so I gave up after many attempts. will try fsck.mode=force on next boot (whenever that happens), tune2fs says filesystem is clean. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org