Just a guess...but you might need to put a symbolic link from the
wrapper into into the smrsh directory. Sendmail has a restricted shell
that it uses to ensure that only authorized applications are spawned from
it to thwart some hackers. Here's an explaination from the majordomo-faq:
2.11 - I get "sh: wrapper not available for sendmail programs"
You're on a system which uses smrsh. (sendmail restricted shell). You have
to configure smrsh to allow it to execute the wrapper. Normally
this is done by creating a symlink in /var/adm/sm.bin (in some it's
/etc/smrsh) to Majordomo's wrapper program.
On Wed, 6 Jun 2001, James L. Terman wrote:
> I am running redhat 6.2 linux. I have installed the 1.94.4-8 version rpm
> of majordomo. I have set up the following aliases for the list "foo"
>
> majordomo: "| /usr/lib/majordomo/wrapper majordomo"
> mj: majordomo
> owner-majordomo: majordomo-owner
> majordomo-owner: me
> bounces-owner: majordomo-owner
> bounces-approval: majordomo-owner
>
> foo: "| /usr/lib/majordomo/wrapper resend -l foo foo-list"
> foo-list: :include:/var/lib/majordomo/lists/foo
> owner-foo: me
> foo-owner: me
> foo-request: "| /usr/lib/majordomo/wrapper majordomo -l foo"
>
> I ran ./wrapper config-test with no problems reported.
>
> When I send a test message (say "help") to majordomo on my machine, I get the
> following email in respones:
>
> From: Mail Delivery Subsystem <MAILER-DAEMON@termanweb.net>
> To: majordomo-owner@termanweb.net
> Subject: Returned mail: Service unavailable
> Date: Tue, 5 Jun 2001 15:09:57 -0700
>
> The original message was received at Tue, 5 Jun 2001 15:09:57 -0700
> from jim@localhost
>
> ----- The following addresses had permanent fatal errors -----
> "| /usr/lib/majordomo/wrapper majordomo"
> (expanded from: majordomo)
>
> ----- Transcript of session follows -----
> sh: wrapper not available for sendmail programs
> 554 "| /usr/lib/majordomo/wrapper majordomo"... Service unavailable
>
> Obviously, sendmail does not seem to think it has permission to run wrapper,
> but it should:
>
> > ls -l /usr/lib/majordomo/wrapper
> -rwsr-xr-x 1 root majordom 5304 Sep 3 1999 /usr/lib/majordomo/wrapper
>
> Does anyone have any idea what is going on?
>
Follow-Ups:
References:
|
|