我运行Postfix的Sendmail 2.6.6和我的SMTP日志似乎只能回到一个月。 我如何configuration它以保留较长时间的日志?
顺便说一句我指的是\ var \ logs \ maillog中的日志*
Postfix永远不会丢弃日志,这是logrotate的工作。 检查/etc/logrotate.conf和/etc/logrotate.d/syslog ,并根据自己的喜好进行configuration。
/etc/logrotate.conf
/etc/logrotate.d/syslog