Great Circle Associates Majordomo-Users
(January 2001)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: sh: cannot use | in command
From: "D. Liston" <dliston @ netscape . com>
Organization: iPlanet E-Commerce Solutions, A Sun Netscape Alliance
Date: Fri, 26 Jan 2001 13:25:31 -0600
To: Ed Kasky <ed @ wrenkasky . com>
Cc: majordomo-users @ GreatCircle . COM
References: <4.3.2.7.2.20010122221446.00b896e8@pop.primenet.com> <4.3.2.7.2.20010125094650.00b06d40@pop3.primenet.com> <4.3.2.7.2.20010126073817.00b01ac0@pop3.primenet.com> <4.3.2.7.2.20010126101616.00b0a840@pop3.primenet.com>

Have you read through or edited the demime script to make 
sure the directory structures are correct?  The location of
perl for example.  The existence of sysexits.ph.  The control
file location.  There might be a missing perl module...

Otherwise, I guess it is time to put in some check points.
I will assume your address is already in the subscriber file.
Add your address to the alias for test in the aliases file.
Change ,nobody in the filter to ,ed
Between :0 and |/usr/local....  insert;
:0 c
! ed@wrenkasky.com

In fact, if you have multiple addresses, it would be good to
use different ones in each location to see how far the mail
actually gets.

Another test, remove the demime portion of the filter and
see if that much of everything is working.  If so, time to
examine the demime script very carefully.

Dan Liston


Ed Kasky wrote:
> 
> At 11:23 AM 1/26/2001 -0600, you wrote:
> >Is the missing ":"
> >at the beginning of your filter a typo?
> 
> Yes - it's there in the file...
> 
> >Your filter directory should not be world or group writable.
> >The "test" filter should be 644 majordom:majordom.
> 
> I changed it - thanks.
> 
> drwxr-xr-x   2 majordom majordom     1024 Jan 26 07:30 .
> drwxr-xr-x  19 majordom majordom     2048 Jan 26 07:26 ..
> -rw-r--r--   1 majordom majordom      176 Jan 26 10:15 test
> 
> >I am not positive, but you might need to put " marks around
> >the last line of the filter, and make sure the last line is
> >all one line beginning at the first |.
> 
> There are no breaks in the last line and I also tried it with " marks
> around the last line....
> 
> I still get:
> 
> Jan 26 10:15:31 yoda procmail[23352]: Suspicious rcfile
> "/usr/local/majordomo/filter/test"
> Jan 26 10:15:31 yoda sendmail[23351]: KAA23351: to="|usr/bin/procmail -f-
> /usr/local/majordomo/filter/test", delay=00:00:00, xdelay=00:00:00,
> mailer=prog, stat=Sent
> 
> ...and no mail.
> 
> I'm stumped.
> 
> Ed
> 
> > > >Aliases file:
> > > >test: "|/usr/bin/procmail -f- /var/lib/majordomo/filter/test"
> > > >
> > > >test filter:
> > > >:0fhw
> > > >* !^TO_test@example\.com
> > > >| formail -I "X-ApprovalRequired: true"
> > > >:0
> > > >| /var/lib/majordomo/wrapper resend -l test test-outgoing,nobody
> > > >
> > > >The last line of the filter could be changed to include demime like so:
> > > >"|/usr/lib/majordomo/demime - |/usr/lib/majordomo/wrapper resend -l test
> > > >test-list,nobody"
> > >
> > > Using procmail and the filter seems to be working but the mail didn't go
> > > anywhere:
> > >
> > >  From the maillog:
> > >
> > > Suspicious rcfile "/usr/local/majordomo/filter/test"
> > > "/usr/bin/procmail -f- /usr/local/majordomo/filter/test", delay=00:00:01,
> > > xdelay=00:00:00, mailer=prog, stat=Sent
> > >
> > > The mail never went to the list and is not in a queue...
> > >
> > > Here's my test filter:
> > >
> > > :0fhw
> > > * !^TO_test@mydomain\.net
> > > | formail -I "X-ApprovalRequired: true"
> > > :0
> > > "|/usr/local/majordomo/demime - |/usr/local/majordomo/wrapper resend -l
> > test test-list,nobody"



Follow-Ups:
References:
Indexed By Date Previous: Re: Kinder, gentler restrict_post?
From: Chris Marble <cmarble@orion.ac.hmc.edu>
Next: FW: New one--clues?
From: "Noce, Guy" <gnoce@towson.edu>
Indexed By Thread Previous: Re: sh: cannot use | in command
From: Ed Kasky <ed@wrenkasky.com>
Next: Re: sh: cannot use | in command
From: Ed Kasky <ed@wrenkasky.com>

Google
 
Search Internet Search www.greatcircle.com