The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Поиск:  Каталог документации

5. Frequently Asked Questions

Two questions occur often.

5.1. Why does sendmail give the error, sh: wrapper not available for sendmail programs?
5.2. Why will Red Hat not process my mc file?

5.1. Why does sendmail give the error, sh: wrapper not available for sendmail programs?

smrsh will only allow sendmail to execute certain files. See Section 2.2.4.

5.2. Why will Red Hat not process my mc file?

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 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.0
Also 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')dnl
After these two changes, the new sendmail.cf should be generated properly.




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру