[Dovecot] Maildir, procmail, and locks

Odhiambo WASHINGTON odhiambo.raburu at wananchi.com
Sat Jun 3 11:05:56 EEST 2006


* On 02/06/06 15:44 -0700, Mark Nienberg wrote:
| 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.


This is not a problem with dovecot. It's a procmail issue.
Do you realize that this could be a problem in your .procmailrc?
The mail is being delivered to /var/mail/mark as opposed to 
/home/mark/Maildir/new/ ... just check your .procmailrc env settings, I 
think.


-Wash

http://www.netmeister.org/news/learn2quote.html

DISCLAIMER: See http://www.wananchi.com/bms/terms.php

--
+======================================================================+
    |\      _,,,---,,_     | Odhiambo Washington    <wash at wananchi.com>
Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
+======================================================================+

Warp 7 -- It's a law we can live with.


More information about the dovecot mailing list