Страница 1 из 1
mail для root
Добавлено: 2008-11-13 10:20:15
pimlab
Есть сервер на Freebsd 7.1 и все что надо установлено из портов (самба, squid и тд) и работает вроде без нареканий.
Так как почта не нужна ни в каком виде , то в rc.conf прописал sendmail_enable="none"
Но заметил что всеравно ктото пишет в /var/mail/root
и фаил постоянно увеличивается.
как от этого избавится или надо чтото настраивать еще?
Re: mail для root
Добавлено: 2008-11-13 11:09:06
hizel
Хэндбук предупреждает.
Warning: If you disable sendmail's outgoing mail service, it is important that you replace it with an alternative mail delivery system. If you choose not to, system functions such as periodic(8) will be unable to deliver their results by e-mail as they would normally expect to. Many parts of your system may expect to have a functional sendmail-compatible system. If applications continue to use sendmail's binaries to try to send e-mail after you have disabled them, mail could go into an inactive sendmail queue, and never be delivered.
но если очень надо, с алиасьте root в /dev/null в /etc/mail/aliases
Re: mail для root
Добавлено: 2008-11-13 20:38:38
Гость
переидичное засирание рутовского ящика можно отрубить, если добавить в /etc/periodic.conf:
Код: Выделить всё
# Don't mail logs to root. Drop shit in /var/log/
daily_output=/var/log/daily.log
daily_status_security_output=/var/log/daily.security.log
weekly_output=/var/log/weekly.log
monthly_output=/var/log/monthly.log