Проблема Sendmail: не Может должностное лицо/etc/mail/smrsh: Разрешение отклонено

# tail --follow=mylog.log

От хвоста человека:

With --follow (-f), tail defaults to  following  the  file  descriptor,
       which  means that even if a tail’ed file is renamed, tail will continue
       to track its end.  This default behavior  is  not  desirable  when  you
       really want to track the actual name of the file, not the file descrip‐
       tor (e.g., log rotation).  Use --follow=name in that case.  That causes
       tail  to track the named file by reopening it periodically to see if it
       has been removed and recreated by some other program.

Таким образом в этом случае с помощью -F опция была бы корректна.

-F     same as --follow=name --retry
0
задан 26 January 2011 в 17:02
1 ответ

Для двоичного файла, чтобы смочь быть выполненным sendmail с smrsh активированный необходимо добавить ссылку в smrsh каталоге (по крайней мере, в Redhat)

Таким образом, необходимо сделать следующее

cd /etc/smrsh
ln -s /usr/bin/dspam dspam

И затем измените свои псевдонимы на

spam:                   "|dspam --user global --class=spam --source=error"

Иначе можно всегда отключать smrsh функциональность от sendmail, но я не рекомендую той опции

1
ответ дан 4 December 2019 в 22:37

Теги

Похожие вопросы