Fail Cron test -x /etc/init.d/sendmail

При работе с почтой сталкивался с сыпящимися ошибками cron из-за теста sendmail. Судя по форумам трабла с конфликтом разных средств отправки сообщений и из-за того, что при установке второго средства, sendmail продолжает полу-работать. Методов решения несколько (см. ссылки), самым простым (и никак в последствии не повлиявшим на что либо) мне показалось просто закоменчивание проблемной строки в конфиге PROCMAIL для SENDMAIL.

от:              Mail Submission Program <redkin.pv@gmail.com>
 кому:          root
 дата:        16 ноября 2013 г., 15:40
 тема:        Cron <smmsp@noreply> test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp 
 /usr/share/sendmail/sendmail: 899: /usr/share/sendmail/sendmail: /usr/sbin/sendmail-msp: not found

http://ubuntuforums.org/showthread.php?t=1557127
 http://birdchan.com/home/2012/08/13/test-x-etcinit-dsendmail-usrsharesendmailsendmail-cron-msp/
 http://www.howtoforge.com/forums/archive/index.php/t-16587.html
 The problem arises because they all try to appear like 'sendmail' and thus pollute the sendmail directories. I experienced this problem when installing POSTFIX. Sendmail is in there by default, and postfix takes on most of its job, but there are parts that of sendmail still trying to run. But postfix has installed itself within parts of send/sendmail sufficient to make what's left of sendmail fail.
 
 The "solution" can be to comment de cron line in : /etc/cron.d/sendmail
 */20 * * * * smmsp test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp
 This is what I'd do because you've Postfix installed and don't need Sendmail. :)

Leave a Reply