在/etc/periodic.conf中放置如下内容。
以下配置将减少电子邮件中的噪音。如果这些消息为空,则periodic(8)将不会发送电子邮件。此外,安全电子邮件将包含在日常电子邮件中,这也减少了噪音。
# /etc/periodic.conf overrides the defaults in /etc/defaults/periodic.conf
# This file can be overriden by /etc/periodic.conf.local
# *_show_success, *_show_info & *_show_badconfig are disabled
# per recomendation of periodic(8) and "Absolute FreeBSD" p. 310-311
# and "Essential system administration, 3rd Ed." p. 98
# *_show_badconfig="NO" will suppress messages for tools which are not installed on this system (e.g. ZFS on a system without ZFS).
daily_show_success="NO"
daily_show_info="NO"
daily_show_badconfig="NO"
weekly_show_success="NO"
weekly_show_info="NO"
weekly_show_badconfig="NO"
monthly_show_success="NO"
monthly_show_info="NO"
monthly_show_badconfig="NO"
# Include security jobs with daily email. No need to send second email.
daily_status_security_inline="YES"
security_show_success="NO"
# Don't need to know about denied packets every day
daily_status_security_ipfdenied_enable="NO"
### Now, enable services which you DO want to be aware of
# Check host for old ports
daily_status_security_portaudit_enable="YES"
# Perform ZFS filesystem checks
daily_status_zfs_enable="YES"
上面的示例将使您达到90%的目标。但是,还有一个其他问题,使用标准FreeBSD配置(自20110601起)无法解决。处的脚本/etc/periodic/daily/450.status-security
仍将打印以下无意义的消息:
Security check:
-- End of daily output --
解决方法是应用http://www.freebsd.org/cgi/query-pr.cgi?pr=138692中找到的补丁。此修补程序将修改450.status-security的返回码,从而不会打印其他消息。