邮件日志在系统默认是7天则自动覆盖了,但作为一个大的邮件系统,保留日志已被将来查询很重要,修改成日志保留一年,只需要在newsyslog.conf文件中将count加大到365则可:
# configuration file for newsyslog
# $FreeBSD: src/etc/newsyslog.conf,v 1.50 2005/03/02 00:40:55 brooks Exp $
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
/var/log/all.log 600 7 * @T00 J
/var/log/amd.log 644 7 100 * J
/var/log/auth.log 600 7 100 * JC
#/var/log/maillog 640 7 * @T00 JC
/var/log/maillog 640 365 * @T00 JC
/var/log/xferlog 600 7 100 * JC
阅读(809) | 评论(0) | 转发(0) |