emos邮件系统的mta:postfix,有很强的日志功能,任何登录、邮件发送、投递等信息都会在日志中记录,因此我们有必要了解postfix日志的相关操作:日志查看、日志清空等。
1、 日志存放目录
日志存放目录: /etc/syslog.conf,可以在此处找到mail日志存放目录。
Postfix daemon processes run in the background, and log problems and normal activity to the syslog daemon. The syslogd process sorts events by class and severity, and appends them to logfiles. The logging classes, levels and logfile names are usually specified in /etc/syslog.conf. At the very least you need something like:
/etc/syslog.conf:
mail.err /dev/console
mail.debug /var/log/maillog
After changing the syslog.conf file, send a "HUP" signal to the syslogd process.