I'm having the same problem.  If I use:

"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #richajoh"

an error is mailed to root that says 'sh: cannot use & in command'.

If I use:

"|exec /usr/bin/procmail #richajoh"

I get address richajoh is unsafe for mailing to programs.

Anyone have any ideas?   If anyone has procmail working in Mandrake 6.1,
what do you have in your forward?

-JR


----- Original Message -----
From: Thomas J. Hamman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 19, 1999 11:18 AM
Subject: Re: [newbie] Procmail


> Can somebody who uses Procmail for mail filtering (or knows how) please
tell me
> what you put in your ~/.forward file?  I've tried several variations,
including
> this one given in procmail's manpage:
>
> "|exec /usr/bin/procmail"
>
> And it does not work.
>
>
>
> On 19-Oct-99 Civileme wrote:
> > Tom,
> >
> > I think I need to see the line before that one as well. The pipe
established
> > on
> > that line has to be from something.  Better yet, a copy of the file
where it
> > is.
> > I see a shell error being reported which indicates a syntax problem is
> > isolating
> > an '&' somehow.
>
> That line is the only line in the file (and as far as I can tell, the only
line
> that's supposed to be in it).
>
> > One elementary check is to make sure the example line isn't using `
> > (lowercase of
> > the uppercase ~ key) where you are using ' (lowercase of the uppercase "
key)
> > .
> >
> > Civileme
>
> I checked, and was indeed using the correct key.  I've since tried some
> alternate .forward files given in the documentation I was using, including
the
> one given in procmail's man page (which I typed above), and they all
result in
> the test mail being lost and me receiving (when I check in my X-based mail
> client so procmail can't lose it) a mail ending in something like this:
>
>    ----- Transcript of session follows -----
> sh: exec not available for sendmail programs
> 554 "|exec /usr/bin/procmail"... Service unavailable
>
> It's as if sendmail doesn't want to run any of the commands in the
.forward
> file..
>
> -Tom
>
>

Reply via email to