smrsh will only allow sendmail to execute certain files. See Section 2.2.4.
For some reason, Red Hat does not include the necessary files to process mc files. According to /etc/mail/sendmail.mc, these files should be in the sendmail-cf package; however, I was unable to find this package on the Red Hat CD. To fix this problem, install Red Hat's Sendmail SRPM, uncompress the Sendmail tarball, and copy the necessary macro files:
[root@kes root]# rpm -i sendmail-8.11.0-8.src.rpm [root@kes root]# cd /usr/src/redhat/SOURCES/ [root@kes SOURCES]# tar zxvf sendmail-8.11.0.tar.gz [root@kes SOURCES]# cd sendmail-8.11.0 [root@kes sendmail-8.11.0]# cp -R cf /usr/lib/sendmail-cf [root@kes sendmail-8.11.0]# cd .. [root@kes SOURCES]# rm -rf sendmail-8.11.0Also in the default /etc/mail/sendmail.mc file, there is a slight syntax error. (The beginning single quotes on one line slant in the wrong direction.) The line that reads
define('ALIAS_FILE','/etc/aliases')dnl
should be changed to
define(`ALIAS_FILE',`/etc/aliases')dnlAfter these two changes, the new sendmail.cf should be generated properly.