Troubleshooting - Postfix Empty Mail Log
Few
days back I faced a problem in getting e-mail log from /var/log/mail.log. I
found the mail.log file is empty and not showing any email log. After that I
analyzed the issue and found that mail.log file has the permission like below:
-rw-r----- 1 root
adm 0K Dec 12 00:15 mail.log
I
immediately changed the ownership using below command and restarted rsyslog,
postfix service.
#chown
syslog:adm /var/log/mail.log
#service
rsyslog restart
#service
postfix restart
Then,
after executing the command “tail –f /var/log/mail.log”, I found the e-mail log
showing properly.
Comments
Post a Comment