procmail
[Top] [All Lists]

Re: recipe or maildir issues

2001-11-12 02:40:28

Hi Matt.

First off, you don't need to lock your mailboxes when you use maildirs.
Check the procmail(1) man page, look for "don't need to use lockfiles".
Start by removing the trailing colons from your ":0" lines, and see if
anything changes.

Looking at your verbose log, what I don't understand is why any mail is
being delivered at all.  You should remove the LOCKFILE variable from
your rc file altogether, as it seems to be corrupting your tmp files,
and its use is deprecated anyway per procmailrc(1).  Note the name
".Boxen/tmp/1005542253.16005_0./.lockmailcanis.streampipe.com".  It
appears that for this recipe, your $LOCKFILE is being tacked on to the
end of a tmp filename.  Since tmpfile is a *file*, not a directory,
there is no way for procmail to touch "tmpfile/.lockmail".

Let me knos if this solves it.  :)

p


On Mon, Nov 12, 2001 at 12:27:03AM -0500, Matt Rowley wrote:

Hello...
I am quite new to procmailing, so if this problem of mine is anything
obvious I do apologize; a simple pointer to the right URL and a minor
spanking would be appreciated.  (I have googled the hell out of my
error messages, to no avail)
In short, I had a simple recipe working on my old mailserver (postfix
(on linux) spewing out to mboxes).  I switched to Maildir on a new
linux box and adjusted my recipe file accordingly; now two entries in
my recipe work, and the other fails.  The procmail log shows that it
matches correctly, but then says there's an error writing the
.Folder/tmp/.  It doesn't seem to be a permissions issue, though...
Here's the .procmailrc:

---------------------------------------------
SHELL=/bin/bash
MAILDIR=$HOME/Maildir
DEFAULT=$MAILDIR/
LOGFILE=procmail.log
LOCKFILE=$HOME/.lockmail
VERBOSE=yes

:0:
* ^TO_(_dot_)*evening-plans(_at_)yahoogroups(_dot_)com
.Evening-plans/

:0:
* ^TO_(_dot_)*postfix-users(_at_)postfix(_dot_)org
.Postfix/

:0:
* ^TO_(_dot_)*logcheck(_at_)streampipe(_dot_)com
.Boxen/
-----------------------------------------------

Mail to evening-plans and postfix-users sorts fine into their
respective folders.  The logcheck mail Matches, but then has errors
and defaults to the inbox.  I've even tried deleting the .Boxen
folder, then doing 
cp -R .Postfix/ .Boxen/ 
(didn't care about the contents, just wanted to eliminate permissions
as the problem).  Anyway, the same thing happened.  Postfix-users was
fine, logcheck failed.
When I send mail to logcheck, here's what I get in the procmail.log:

-----------------------------------------------
From root(_at_)honeypot(_dot_)streampipe(_dot_)com  Mon Nov 12 05:01:57 2001
 Subject: honey test
  Folder:
/home/streampipe/matt/Maildir/new/1005541318.15927_1.ipe.comc     647
procmail: Unlocking "/home/streampipe/matt/.lockmail"
procmail: [16005] Mon Nov 12 05:17:32 2001
procmail: Match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)(_dot_)*logcheck(_at_)streampipe(_dot_)com"
procmail: Locking ".Boxen/.lock"
procmail: [16005] Mon Nov 12 05:17:33 2001
procmail: Error while writing to
".Boxen/tmp/1005542253.16005_0./.lockmailcanis.streampipe.com"
procmail: Couldn't create or rename temp file
".Boxen/tmp/1005542253.16005_0./.lockmailcanis.streampipe.com"
procmail: Unlocking ".Boxen/.lock"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)(_dot_)*evening-plans(_at_)yahoogroups(_dot_)com"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)(_dot_)*postfix-users(_at_)cloud9(_dot_)net"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)(_dot_)*postfix-users(_at_)postfix(_dot_)org"
procmail: Assigning
"LASTFOLDER=/home/streampipe/matt/Maildir/new/1005542253.16005_1.ipe.comcanis.streampipe.com"
procmail: Notified comsat:
"matt(_at_)0:/home/streampipe/matt/Maildir/new/1005542253.16005_1.ipe.comcanis.streampipe.com"
From root(_at_)honeypot(_dot_)streampipe(_dot_)com  Mon Nov 12 05:17:32 2001
 Subject: honey test
  Folder:
/home/streampipe/matt/Maildir/new/1005542253.16005_1.ipe.comc     647
procmail: Unlocking "/home/streampipe/matt/.lockmail"
-----------------------------------------------

I'm really at a loss as to what could be wrong.  This recipe worked
fine on my old mailserver, the only difference being mbox versus
Maildir (but I thought I accounted for that in the procmailrc file. 
The working folder and the not-working folder have identical
permissions (see postscript below).
Any assistance would be greatly appreciated.

Thanks,

Matt



PS: just for kicks:

[matt(_at_)canis .Boxen]$ ls -la
total 24
drwx------    5 matt     matt         4096 Nov 12 05:17 .
drwxrwxrwx   13 matt     matt         4096 Nov 12 05:20 ..
-rw-r--r--    1 matt     matt         1205 Nov 12 05:00
courierimapuiddb
drwx------    2 matt     matt         4096 Nov 12 02:05 cur
-rwx------    1 matt     matt            0 Nov 12 02:05 maildirfolder
drwx------    2 matt     matt         4096 Nov 12 02:05 new
drwx------    2 matt     matt         4096 Nov 12 02:05 tmp

[matt(_at_)canis .Postfix]$ ls -la
total 36
drwx------    5 matt     matt         4096 Nov 12 05:01 .
drwxrwxrwx   13 matt     matt         4096 Nov 12 05:20 ..
-rw-r--r--    1 matt     matt         1205 Nov 12 05:01
courierimapuiddb
drwx------    2 matt     matt        12288 Nov 12 02:04 cur
-rwx------    1 matt     matt            0 Nov  7 10:23 maildirfolder
drwx------    2 matt     matt         8192 Nov 12 02:03 new
drwx------    2 matt     matt         4096 Nov 12 02:02 tmp
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

-- 
  Paul Chvostek                                             
<paul(_at_)it(_dot_)ca>
  Operations / Development / Abuse / Whatever       vox: +1 416 598-0000
  IT Canada                                            http://www.it.ca/

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>