procmail
[Top] [All Lists]

Re: lock file and write errors

2000-10-11 16:48:23
anand v wrote:
I have this .procmailrc file for each user

==============================================
PATH=$HOME/bin:/usr/bin:/bin:/usr/local/bin:/home/httpd/cgi-bin/bin
MAILDIR=$HOME/mail     # You'd better make sure it exists
LOGFILE=$MAILDIR/log
DEFAULT=/usr/spool/mail/$LOGNAME

Why do you set DEFAULT here?  
I suppose procmail -v includes this line in the output?

    Your system mailbox:   /var/spool/mail/$LOGNAME

Does /usr/spool/mail exist?  Is it linked to /var/spool/mail ?

...
:hb
^From:(_dot_)*919848029963(_at_)tatacell(_dot_)net
|mailexec

The syntax looks a little strange.  I would expect to have something
like this:

   :0 hb
   * ^From:(_dot_)*919848029963(_at_)tatacell(_dot_)net
   | mailexec

(You could say ":0" instead of ":0 hb" since hb is the default here.)

Note the '0' and the '*', both of which were missing in your recipe.
Anyway, the .procmailrc has only that one recipe, and that's all?


And if I send a mail from say Palm pilot everything works fine and
here is how the header looks from Palm

Where does the mail go... into /usr/spool/mail/tata, or into
/var/spool/mail/tata?  

So it doesn't match the "^From:.*919..." thing, right?

Didn't procmail complain about your syntax?

[...]

You didn't show us any line in the header containing "From:" -- so I
have to assume that it looks like the "From " line (note no ':').

===================================================

However, when I send a mail from a cell phone it gives me
the following error in mail/log file in each user

procmail: Lock failure on "/usr/spool/mail/tata.lock"
procmail: Error while writing to "/usr/spool/mail/tata"
From "9848029963 < 9848029963"@tatacell.net  Sat Oct  7 12:26:12 2000
Subject: Email(_at_)TATACell
  Folder: /var/spool/mail/tata

Does the "From:" line (which we don't see) match your "^From:.*989..."
condition in your recipe?  Did "mailexec" get executed?  The 'mailexec'
script apparently failed; is that expected?

================================================

and my cell mail header looks like this

==================================================
From "9848029963 < 9848029963"@tatacell.net  Sat Oct  7 12:27:03 2000
Return-Path: <"9848029963 < 9848029963"@tatacell.net>
Received: from tatacell.net 
(IDENT:qmailr(_at_)[202(_dot_)63(_dot_)103(_dot_)165])
        by ofsnet.com (8.9.3/8.9.3) with SMTP id MAA05933
        for <anand(_at_)ofsnet(_dot_)com>; Sat, 7 Oct 2000 12:26:56 -0500
Received: (qmail 10980 invoked from network); 7 Oct 2000 22:52:02 -0000
Received: from unknown (HELO tatacell.net?) (202.63.103.164)
  by 202.63.103.165 with SMTP; 7 Oct 2000 22:52:02 -0000
Message-ID: <2606720001067171740750(_at_)tatacell(_dot_)net>>
=========================================================

Where's the "From:" line?


So what is the difference between the Palm header to the cell
phone header???

My guess is that the "From:" header matched the recipe...


Is something wrong with my .procmailrc file???

The syntax looks bad, as noted above.
Also, if the 'mailexec' script succeeds, the mail should go only
there; i.e., it will not go into your $DEFAULT.  

Did the mail from your palm go into your $DEFAULT?

-- 
Neither I nor my employer will accept any liability for any problems
or consequential loss caused by relying on this information.  Sorry.
Collin Park                         Not a statement of my employer.

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