我试图debugging一个陌生的邮件服务器,我找不到任何postfix的日志。 在文档中说:
Postfix logs all failed and successful deliveries to a logfile. The file is usually called `/var/log/maillog` or `/var/log/mail`; the exact pathname is defined in the `/etc/syslog.conf`.
我检查了/etc/syslog.conf ,并列出了/var/log/maillog但没有任何内容。 以前的pipe理员禁用所有日志logging在其他应用程序,我认为这可能是在这里相同。 有没有办法我可以重新启用日志logging,所以我可以继续debugging?
编辑:根据请求,当我运行postconf syslog_facility它返回syslog_facility = mail 。
我的syslog守护进程是syslogd ,我已经使用/usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -s命令validation了它正在运行。 我粘贴了下面的syslog.conf (删除注释行):
*.err;kern.warning;auth.notice;mail.crit /dev/console *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages security.* /var/log/security auth.info;authpriv.info /var/log/auth.log mail.info /var/log/maillog lpr.info /var/log/lpd-errs ftp.info /var/log/xferlog cron.* /var/log/cron *.=debug /var/log/debug.log *.emerg * !ppp *.* /var/log/ppp.log !*
所有的后缀日志应该(默认情况下)进入/var/log/mail.log (和类似的错误)。 authentication日志应该到/var/log/auth.log 。
我想这可能是全部。