Restricted shell for sendmail.
smrsh -c command
The smrsh command is intended as a replacement for the sh command in the prog mailer in sendmail configuration files. The smrsh command limits the programs that can be run using the sendmail command syntax. This improves overall system security. smrsh limits the set of programs that a programmer can execute, even if sendmail runs a program without going through an alias or forward file.
Initial pathnames on programs are stripped, so forwarding to /usr/ucb/vacation, /usr/bin/vacation, /home/server/mydir/bin/vacation, and vacation all actually forward to /var/adm/sm.bin/vacation. System administrators should be conservative about populating /var/adm/sm.bin. Reasonable additions are utilities such as vacation(1) and procmail. Never include any shell or shell-like programs (for example, perl) in the sm.bin directory. This does not allow the execution of arbitrary programs, but does not restrict the use of shell or perl scripts in the sm.bin directory (using the #! syntax).