[Dovecot] Maildir, procmail, and locks
Mark Nienberg
gmane at tippingmar.com
Sat Jun 3 01:44:26 EEST 2006
I'm using procmail as the local delivery agent for Maildir style
mailboxes. I discovered that I was able to send mail to other users but
was unable to send mail to myself. Examples from verbose procmail log:
**** Successful message to another user ****
procmail: [24589] Fri Jun 2 15:03:34 2006
procmail: Assigning
"PATH=/home/david/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin"
procmail: Assigning "LASTFOLDER=/home/david/Maildir/new/msg.4AAdC"
procmail: Opening "/home/david/Maildir/new/msg.4AAdC"
procmail: Acquiring kernel-lock
procmail: Notified comsat: "david at 0:/home/david/Maildir/new/msg.4AAdC"
From mark.nienberg at tippingmar.com Fri Jun 2 15:03:34 2006
Subject: test to other user
Folder: /home/david/Maildir/new/msg.4AAdC
**** Failed message to myself ****
procmail: [24596] Fri Jun 2 15:05:13 2006
procmail: Assigning
"PATH=/home/mark/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin"
procmail: Couldn't create or rename temp file "/home/mark/Maildir/new/msg.A"
procmail: Assigning "LASTFOLDER=/var/mail/mark"
procmail: Opening "/var/mail/mark"
procmail: Acquiring kernel-lock
procmail: Notified comsat: "mark at 686:/var/mail/mark"
From mark.nienberg at tippingmar.com Fri Jun 2 15:05:13 2006
Subject: test to self
Folder: /var/mail/mark
Anyway, I changed dovecot's lock_method from the default fcntl to flock
and the problem disappeared. I'll add this to the wiki unless someone
points out an error in my method.
Mark Nienberg
More information about the dovecot
mailing list