procmail
[Top] [All Lists]

Re: Can't forward mail to procmail

1997-04-29 07:56:00
On Mon, 28 Apr 1997, Kevin Landers wrote:

landers> Cannot exec '/bin/sh -c' errno=2
landers> 554 "|exec /usr/bin/procmail #landers"... Service unavailable
landers> 
landers> This looks like procmail is not in /usr/bin/procmail, however,
landers> I can type
landers> 
landers> /bin/sh -c "/usr/bin/procmail -v"
landers> 
landers> on the command line and it works just fine.  Anyone have any
landers> ideas? 

I wonder if your .forward might be executing on a host other than your
login host.  If so, a possible problem in addition to the pathname is
the architecture for which procmail is compiled.

A possible workaround, if your login host has a sendmail.cf with a
forward path like

        O ForwardPath=$z/.forward.$w:$z/.forward

would be to rename your .forward file as .forward.host (unqualified).
This is the $z/.forward.$w component above.  Works well for me.

Alternatively, you could build sanity tests into the .forward invocation
itself.  I'm sure other readers are better than I at detailing this.

Regards,
-- 
   Rick Troxel     Rick_Troxel(_at_)nih(_dot_)gov     
rick(_at_)helix(_dot_)nih(_dot_)gov
     http://www.dc-sage.org/bios/rick_troxel  301/435-2983
/////////////////////////////////////////////////////////////////
All effort and exertion put forth by man from the fullness of his
heart is worship, if it  is prompted  by the  highest motives and
the will to do service to humanity.                 --Abdu'l-Baha

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