procmail
[Top] [All Lists]

Re: -a option and FEATURE(local_procmail)

1996-09-23 14:51:24
"Tony Zamora" <zamora(_at_)VNET(_dot_)IBM(_dot_)COM> writes:
I am using procmail v3.11pre4 and Sendmail 8.7.5 and am having trouble
with FEATURE(local_procmail).  FEATURE(local_procmail) defines the A
equate as A=procmail -Y -a $h -d $u

The problem is that since procmail is my local mailer, $h is always
NULL.  Page 431 of the O'Reilly Sendmail book says that this is normal
for a local mailer.  Since $h is null, procmail is being invoked as
procmail -Y -a -d username, which doesn't work properly.  If I modify
sendmail.cf to change the A equate to "A=procmail -Y -d $u" everything
works fine (except I obviously lose the use of the -a option).

You're missing a couple things in the problem report, namely a
mention of the platform this is occuring on, and a description of
how it doesn't work.  Does procmail hang?  Is it delivering to
the wrong people?  Does it delete all vowel from the mail message?

Even though $h is empty, sendmail should be invoking procmail is an
(empty) argument after the -a argument.  I.e.:

argv[0] = "procmail"
argv[1] = "-Y"
argv[2] = "-a"
argv[3] = ""
argv[4] = "-d"
argv[5] = "username"
argv[6] = NULL


WILD GUESS:

Is this under Solaris 2?  If so, this may be due to a known bug in
sendmail 8.7.5 involving an interaction between the nis+ library
and vfork(), such that the spawned procmail ends up with a bogus
file descriptor or two and hangs.  The solution is to disable
use of vfork() when compiling sendmail.

*EVERY* scrap of information counts.

Philip Guenther

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