Great Circle Associates Majordomo-Users
(December 2000)
 

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

Subject: Re: Piping from formail to wrapper archive2.pl
From: Dan Liston <dliston @ netscape . com>
Organization: iPlanet E-Commerce Solutions, A Sun Netscape Alliance
Date: Tue, 19 Dec 2000 02:00:22 -0600
To: Steve Magee <smagee @ arb . ca . gov>
Cc: Sean Porterfield <sporter @ bestdist . com>, majordomo-users @ GreatCircle . COM
References: <3A3AA774.689482C4@arb.ca.gov> <3A3BDF24.56FC38EB@bestdist.com> <3A3E9502.CDD8E4D2@arb.ca.gov>

You could try setting purge_received = yes in the listname.config to 
reduce some of the other headers, but the still does not exactly do
what your formail commands are doing.  I do know that a link to procmail
in the smrsh directory works.  Just make sure you are root when you 
create the link, and you use a fully qualified path and filename.

ln -s /usr/bin/procmail /etc/smrsh/procmail

You could do that and use an alias like;

test: "|/usr/bin/procmail -f- /var/lib/majordomo/filter/test"

with /var/lib/majordomo/filter/test containing something like;

:0
| "/usr/bin/formail -k -X From: -X Subject: -X Date: |/home/majordomo/majordomo-1.94.4/wrapper archive2.pl -f /home/majordomo/majordomo-1.94.4/lists/mail-list.archive/mail-list -Y -a"

Good luck,
Dan Liston

Steve Magee wrote:
> 
> I have tried your suggestion and got the error, "services unavailable".
> It worked for the "wrapper" program but not for "formail".  Not knowing
> Perl, someone suggested that I move the "formail" function into the
> archive2.pl.  So, that's the direction I'm headed for.  Do you know if
> there is a Perl script that will do the same as the "formail" function?
> 
> Thanks again,
> Steve Magee
> 
> Sean Porterfield wrote:
> 
> > Senmail 8.9.3 uses smrsh (Sendmail restricted shell) to prevent
> > unauthorized scripts from being run (search for smrsh in FAQ).  Even
> > though you don't get the specific error, this could very well be your
> > problem.
> >
> > Try `ln -s /usr/bin/formail /etc/smrsh/formail` and see if that helps.
> >
> > Steve Magee wrote:
> >
> > > RH 6.2
> > > Majordomo 1-94.5
> > > Sendmail 8.9.3
> > >
> > > The above entry in /etc/aliases file no longer works.  I get...
> > >
> > > sh: cannot use | in command
> > > 554 "mail-list-archive: (entry above inserted here)"
> > > ... Service unavailable
> > >
> > > If I remove the "/usr/bin/formail (options)" and just go with
> > > "|/majordomo...wrapper archive2.pl...", the e-mail is archived
> > > without the formail function.
> > >
> > > Any help is appreciated.
> > > Steve Magee



Follow-Ups:
References:
Indexed By Date Previous: RE: large list (more than 20,000)
From: julio.prada@bt.es
Next: Re: From and to in a message
From: Dan Liston <dliston@netscape.com>
Indexed By Thread Previous: Re: Piping from formail to wrapper archive2.pl
From: "Steve Magee" <smagee@arb.ca.gov>
Next: Re: Piping from formail to wrapper archive2.pl
From: "Steve Magee" <smagee@arb.ca.gov>

Google
 
Search Internet Search www.greatcircle.com