procmail
[Top] [All Lists]

Re: matching on HOST

1997-11-10 21:10:38
Bill Pemberton <wfp5p(_at_)tigger(_dot_)itc(_dot_)virginia(_dot_)edu> writes:
We've got a case where users have their home directories shared among
several machines, but the mail spool is NOT shared.  Obviously, their
.forward will get read and procmail will be run on all the machines.
What I need is to be able to do a procmailrc that will forward all the
mail to one of the machines and then on that machine it should run
whatever rules the user wants.

I figured I can just use the HOST variable to do it, but I can't get
it to work.

Use the "var ??" condition format to match againt the value of the
HOST variable:

        :0
        * ! HOST ?? ^^target-machine(\.|^^)
        ! $LOGNAME(_at_)target-machine(_dot_)where(_dot_)ever


Philip Guenther

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