.procmailrc lockfile?....what?..

.procmailrc lockfile?....what?..

am 20.10.2005 20:17:58 von Rob

Hi,

I have my .forward & .procmailrc on Redhat Fedora Core 1 as:

[robert@linux_box] ll .forward
-rw-r--r-- 1 robert robert 20 Oct 19 17:28 .forward
[robert@linux_box] more .forward
|/usr/bin/procmail
[robert@linux_box] ll .procmailrc
-rw------- 1 robert robert 151 Oct 19 17:15 .procmailrc
[robert@linux_box] more .procmailrc
FROM=`formail -zxFrom:`
SUBJECT=`formail -zxSubject:`
BODY=`formail -I ""`
:0w:
| /home/robert/bin/forward_email -f "$FROM" -s "$SUBJECT" -b "$BODY"
[robert@linux_box]


I have a problem though...Any email I send to robert@linux_box
replies back complaining this:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

pipe to |/usr/bin/procmail
generated by robert@linux_box.......

The following text was generated during the delivery attempt:

------ pipe to |/usr/bin/procmail
generated by robert@linux_box........ ------

procmail: Couldn't determine implicit lockfile from "/home/robert/bin/forward_email"


------ This is a copy of the message, including all the headers. ------

(removed)




Has anyone see this? What can I do?
....any help would be greatly appreciated...

Re: .procmailrc lockfile?....what?..

am 20.10.2005 23:13:32 von AK

Rob wrote:

> Hi,
>
> I have my .forward & .procmailrc on Redhat Fedora Core 1 as:
>
> [robert@linux_box] ll .forward
> -rw-r--r-- 1 robert robert 20 Oct 19 17:28 .forward
> [robert@linux_box] more .forward
> |/usr/bin/procmail
> [robert@linux_box] ll .procmailrc
> -rw------- 1 robert robert 151 Oct 19 17:15 .procmailrc
> [robert@linux_box] more .procmailrc
> FROM=`formail -zxFrom:`
> SUBJECT=`formail -zxSubject:`
> BODY=`formail -I ""`
> :0w:
> | /home/robert/bin/forward_email -f "$FROM" -s "$SUBJECT" -b "$BODY"
> [robert@linux_box]
>
>
> I have a problem though...Any email I send to robert@linux_box
> replies back complaining this:
>
> This message was created automatically by mail delivery software.
>
> A message that you sent could not be delivered to one or more of its
> recipients. This is a permanent error. The following address(es) failed:
>
> pipe to |/usr/bin/procmail
> generated by robert@linux_box.......
>
> The following text was generated during the delivery attempt:
>
> ------ pipe to |/usr/bin/procmail
> generated by robert@linux_box........ ------
>
> procmail: Couldn't determine implicit lockfile from
> "/home/robert/bin/forward_email"
>
>
> ------ This is a copy of the message, including all the headers. ------
>
> (removed)
>
>
>
>
> Has anyone see this? What can I do?
> ...any help would be greatly appreciated...

You are executing a script, what is the purpose of the lock file?
If you want to use a lock file
use something like:
:0w: mylockfile.lock

See if that helps.

AK