In /etc/mail/sendmail.mc you should have:
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl  #(your smrsh may be installed in another dir)

This feature enables sendmail to use sendmail restricted shell.  Sendmail simply 
references the FEATURE value when attempting to execute programs in the aliases.

First, let's check where your smrsh is located ... using find or which.  it should be 
in the directory referenced above in the sendmail.mc file.  If it's not there then 
modify the FEATURE statement to
point to the location.

---snip
[root@phaedrus mail]# cd /
[root@phaedrus /]# find . -name smrsh -print
./etc/smrsh
./usr/sbin/smrsh
---snip

The first directory is the working directory... the second is the executable.  Like I 
said before - yours may be different so execute the find and see where they are for 
you.

When you have smrsh enabled in sendmail.mc - you should then link the wrapper to 
mailman thusly:

---snip

[root@phaedrus mail]# ln -s /home/mailman/mail/wrapper /etc/smrsh/wrapper
[root@phaedrus mail]# ls -l /etc/smrsh
total 0
lrwxrwxrwx    1 root     root           26 Nov 30 13:11 wrapper -> 
/home/mailman/mail/wrapper
---snip

make sure you replace /home/mailman/mail/wrapper with the path to your actual wrapper.


This worked for me - I hope it works for you.  Regarding the fact that the INSTALL on 
debian has a problem - I cannot help you there - I am using RedHat.  It really should 
not matter however, once you
locate the two things you need - the smrsh working directory and the actual shell 
executable (smrsh) - then put the reference to the executable into the sendmail.mc.

Good Luck - Let me know how you make out.

Mike


-----Original Message-----
From: Dr. Bernd Zimmermann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 3:22 AM
To: Lynn, Michael (DCS)
Cc: 'Johnson David R'; [EMAIL PROTECTED]
Subject: Re: [Mailman-Users] smrsh error


I have a similar problem with smrsh:

When I disable smrsh in sendmail all works fine,
but wiht smrsh I got a "local configuration error" mail
from sendmail.

In sendmail.mc smrsh is activated: FEATURE(smrsh,
`/usr/lib/sm.bin/smrsh')dnl

In /usr/lib/sm.bin/smrsh the link to wrapper is created like the
installation maual requires but it dont work.

I am using debian. In the INSTALL file is written not to use
/usr/lib/sm.bin because it is an error in debain.
Instead one should use /usr/admin/sm.bin, but this dont work
at all - because of config in sendmail.mc.

Why ?

Any hints ?? 

Kind regards,
Bernd

"Lynn, Michael (DCS)" wrote:
> 
> David,
> 
> /usr/sbin/smrsh is an executable... you probably wanted to
> cd /etc/smrsh before symbolically linking.
> 
> Regards,
> Mike
> 
> Michael Lynn
> Platform Architect
> Merrill Lynch
> 201.557.4555
> 917.941.7964
> 
> -----Original Message-----
> From: Johnson David R [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 03, 2001 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: [Mailman-Users] smrsh error
> 
> The original message was received at Mon, 3 Dec 2001 15:57:38 -0500
> from washington.hamptonu.edu [137.198.11.25]
> 
>    ----- The following addresses had permanent fatal errors -----
> "|/var/www/html/mailman/mail/wrapper mailcmd lug"
>     (reason: service unavailable)
>     (expanded from: <[EMAIL PROTECTED]>)
> 
>    ----- Transcript of session follows -----
> smrsh: wrapper not available for sendmail programs
> 554 5.0.0 "|/var/www/html/mailman/mail/wrapper mailcmd lug"... Service
> unavailable
> 
> what is going wrong here? i already created the symbolic link from
> /usr/sbin/smrsh
> 
> cd /usr/sbin/smrsh
> ln -s /var/www/html/mailman/mail/wrapper
> 
> and restarted the sendmail service. What have i not done?
> 
> David Johnson | Network Administrator | Linux Systems Admin
> Hampton University | Hampton, Va. | 23666
> 757.728.6528 [office] | 757.360.8958 [pager]
> [EMAIL PROTECTED] [email]
> 
> ------------------------------------------------------
> Mailman-Users maillist  -  [EMAIL PROTECTED]
> http://mail.python.org/mailman/listinfo/mailman-users
> 
> ------------------------------------------------------
> Mailman-Users maillist  -  [EMAIL PROTECTED]
> http://mail.python.org/mailman/listinfo/mailman-users

------------------------------------------------------
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users


------------------------------------------------------
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users

Reply via email to