procmail
[Top] [All Lists]

Re: Help with lockfile (:0:)

2000-01-31 20:59:40
At 10:35 AM 01/31/00 -0600, Philip Guenther wrote:

To quote the procmailrc(5) manpage's BUGS section:

       A locallockfile on the recipe that marks the  start  of  a
       non-forking nested block does not work as expected.

There are two easy solutions:

2) Use a regional lockfile:
        :0:mark-relay.lock
        * !^FROM_DAEMON
        * !^FROM_MAILER
        * ^X-RR-Relay:
        {
            LOCKFILE = mark-relay.lock
            :0 c
            mark-relay
            :0
            | /usr/local/bin/bash /export/home/twabuse/relayscan.sh
            LOCKFILE
        }

Just FYI, I used solution #2, and kept on getting the extraneous lockfile ignored "error".

Changing it to:

:0
* !^FROM_DAEMON
* !^FROM_MAILER
* ^X-RR-Relay:
{
*snip*

...got rid of the error.

I'm assuming that the lockfile will still be there, since it was specified in the recipe itself?

Mark



   W. Mark Herrick, Jr. <markh(_at_)va(_dot_)rr(_dot_)com>          _.._        
_.._
       Senior Security Administrator             ,','"_:./\/\,'_ `.`.
       Team Lead - Usenet Operations            /_:--:_ ( oo ) _:--:_\
    Road Runner Security - 703.345.2477        /'      `'`vv'`'      `\
<abuse(_at_)rr(_dot_)com><security(_at_)rr(_dot_)com><fraud(_at_)rr(_dot_)com>

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