Dan & Sean - Thanks for your help. After spending much time
on this problem, I needed to 'move on'. The only suggestion I
have not tried, would be to alter the archive2.pl script. It was
suggested to have archive2.pl run the formail to alter the STDIN.
Because I have very limited knowledge of perl, I'll try that later.
Your suggestion of using links in /etc/smrsh seem to have no
affect on the results. Still "service unavailable" and "no piping allowed",
prevailed. Which I don't understand. If the link to the wrapper works,
why not formail & procmail?
So, my solution was to alter the sendmail.cf file from...
Mprog, P=/usr/sbin/smrsh
to
Mprog, P=/bin/bash
According to the documentation, I have removed my security. Not
quite understanding what security I have removed, but it works. I have
installed RH to be a trusted system. After the modification, I reviewed
the old RD 5.2 sendmail and found it to be the same, "/bin/bash" or "/bin/sh".
So, for now, if the old system was without security, then the new one will
also be without security. If you have any last thoughts, free free to write.
Again...Thank you,
Steve Magee
Dan Liston wrote:
> 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
References:
|
|