>>>Размещение ссылки на procmail в /etc/smrsh не помогает. Как с этим справиться?
>>>
>>
>> смотри в конце sendmail.cf где должен быть procmail
>
>нельзя ли поподробнее - что я там должен увидеть (или не увидеть)?
>
>
>Пока что там есть следующее:
>
>Mprocmail, P=/usr/bin/procmail, F=DFMSPhnu9, S=EnvFromSMTP/HdrFromSMTP, R=EnvFromSMTP/HdrFromSMTP, T=DNS/RFC822/X-Unix,
> A=procmail -Y -m $h $f $u
>
>(табуляции и пробелы корректно отобразить не могу)
а поиск по форуму или почитать документацию:
# less /path/sendmail_sources/smrsh/README:
...
The smrsh(8) program is intended as a replacement for /bin/sh in the
program mailer definition of sendmail(8). This README file describes
the steps needed to compile and install smrsh.
smrsh is a restricted shell utility that provides the ability to
specify, through a configuration, an explicit list of executable
programs. When used in conjunction with sendmail, smrsh effectively
limits sendmail's scope of program execution to only those programs
specified in smrsh's configuration.
...
теперь суть:
...
If your platform doesn't have a default SMRSH_CMDDIR setting, you will
next need to create the directory /usr/adm/sm.bin and populate
it with the programs that your site feels are allowable for sendmail
to execute. This directory is explicitly specified in the source
code for smrsh, so changing this directory must be accompanied with
a change in smrsh.c.
You will have to be root to make these modifications.
After creating the /usr/adm/sm.bin directory, either copy the programs
to the directory, or establish links to the allowable programs from
/usr/adm/sm.bin. Change the file permissions, so that these programs
can not be modified by non-root users. If you use links, you should
ensure that the target programs are not modifiable.
To allow the popular vacation(1) program by creating a link in the
/usr/adm/sm.bin directory, you should:
host.domain# cd /usr/adm/sm.bin
host.domain# ln -s /usr/ucb/vacation vacation
...
дальше тоже советую почитать и посмотреть как собирается sendmail для
текущей конкретной OS, ЕСЛИ ЖЕ после этого, все равно НЕПОНЯТНО, убрать
smrsh из sendmail.mc, тогда by-default вместо него должен использоваться
/bin/sh (ls -la /bin/sh)
Прим.: smrsh используется вместо SHELL'а для ограничение запуска утилит
из-под sendmail: vacation, majordomo & etc, так сказать враппер.