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:
|
|