procmail
[Top] [All Lists]

Re: recipe or maildir issues

2001-11-12 12:17:18

This is indeed odd.

Does your verbose log indicate what tmp file is being created for the
messages that are being correctly delivered?

So this latest incarnation still has a slash in the tmp filename though
instead of including the $LOCKFILE text it now appears to include your
$DEFAULT ... or part of it.  Something is definitely wrong with your tmp
filenames.

Can anyone tell us how procmail comes up with names for its tmp files?
Do the strings you're seeing bear any resemblance, say, the Message-Id
lines in the messages?  Could it be that some string within the
Message-Id is being substituted with the content of another variable?  
What's the output from `hostname`?  Just "canis.streampipe.com", or is
there any other text that procmail might misinterpret?  I know I'm
reaching here....  I hate admitting that I have ABSOLUTELY NO CLUE as to
what's going on here.  ;)  I'm seeing nothing you don't.

p


On Mon, Nov 12, 2001 at 08:30:54AM -0500, Matt Rowley wrote:

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.

Makes good sense, I've gotten rid of the LOCKFILE= line and deleted
the trailing colons...

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".

Indeed, I still don't understand why the mail was getting filtered on
the near-identical Postfix and evening-plans lines, but not boxen.
Unfortunately, I applied the changes your recommend, but get roughly
similar error messages:

----------------------------------------------------------------
procmail: [18053] Mon Nov 12 13:10:52 2001
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: Match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.
*[^-a-zA-Z0-9_.])?)(_dot_)*logcheck(_at_)streampipe(_dot_)com"
procmail: Error while writing to
".Boxen/tmp/1005570652.18053_2.Maildir/canis.streampipe.com"
procmail: Couldn't create or rename temp file
".Boxen/tmp/1005570652.18053_2.Maildir/canis.stream
pipe.com"
procmail: Assigning
"LASTFOLDER=/home/streampipe/matt/Maildir/new/1005570652.18053_3.e.comcanis.s
treampipe.com"
procmail: Notified comsat:
"matt(_at_)0:/home/streampipe/matt/Maildir/new/1005570652.18053_3.e.comcani
s.streampipe.com"
From root(_at_)honeypot(_dot_)streampipe(_dot_)com  Mon Nov 12 13:10:52 2001
 Subject: honey test
  Folder:
/home/streampipe/matt/Maildir/new/1005570652.18053_3.e.comcan     647
----------------------------------------------------------------

Now instead of
"Boxen/tmp/1005542253.16005_0./.lockmailcanis.streampipe.com" it's
trying to write to
".Boxen/tmp/1005570652.18053_2.Maildir/canis.streampipe.com".
More interesting is that now the recipes for Postfix-users aren't
working either.  :)  Too funny...
This is the log output right after I edited the procmailrc, and
happened to receive an email from the Postfix mailing list...

----------------------------------------------------------------
procmail: [18057] Mon Nov 12 13:11:34 2001
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: Match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.
*[^-a-zA-Z0-9_.])?)(_dot_)*postfix-users(_at_)postfix(_dot_)org"
procmail: Error while writing to
".Postfix/tmp/1005570694.18057_2.ildir/canis.streampipe.com"
procmail: Couldn't create or rename temp file
".Postfix/tmp/1005570694.18057_2.ildir/canis.stream
pipe.com"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To)
:(.*[^-a-zA-Z0-9_.])?)(_dot_)*logcheck(_at_)streampipe(_dot_)com"
procmail: Assigning
"LASTFOLDER=/home/streampipe/matt/Maildir/new/1005570694.18057_3.e.comcanis.s
treampipe.com"
procmail: Notified comsat:
"matt(_at_)0:/home/streampipe/matt/Maildir/new/1005570694.18057_3.e.comcani
s.streampipe.com"
From owner-postfix-users(_at_)postfix(_dot_)org  Mon Nov 12 13:11:34 2001
 Subject: Re: Logfiles and spool directory
  Folder:
/home/streampipe/matt/Maildir/new/1005570694.18057_3.e.comcan    2890
----------------------------------------------------------------

What's really weird is that the recipe for the evening-plans list is
still working:

----------------------------------------------------------------
procmail: [18165] Mon Nov 12 13:25:58 2001
procmail: Match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.
*[^-a-zA-Z0-9_.])?)(_dot_)*evening-plans(_at_)yahoogroups(_dot_)com"
procmail: Assigning
"LASTFOLDER=.Evening-plans/new/1005571558.18165_2.canis.streampipe.com"
procmail: Notified comsat:
"matt(_at_)0:/home/streampipe/matt/Maildir/.Evening-plans/new/1005571558.18
165_2.canis.streampipe.com"
From
sentto-2359884-683-1005571557-matt=streampipe(_dot_)com(_at_)returns(_dot_)groups(_dot_)yahoo(_dot_)com
 
Mon Nov 12 13:25
:58 2001
 Subject: [evening-plans] gaga?
  Folder:
.Evening-plans/new/1005571558.18165_2.canis.streampipe.com       2001
----------------------------------------------------------------

It's not trying to do anything nutty with lockfiles, yet the other
:0's apparently are...
Muy confusing...  :-/
Here's what my procmailrc looks like right now:

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

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

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

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

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

Hope you guys see somehting I don't, this just seems screwy to me.
No doubt I've pooched something.  ;-)

--Matt

-- 
  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>