While troubleshooting my greylisting issues yesterday, I went ahead and just deleted my mail.log which is located in /var/log. I wanted to start the logs from scratch to see if I can catch the right IP's that were being greylisted.
Well, after I deleted mail.log, and restarted postfix, the log didn't automatically get recreated. So I had to manually create it. Well I created a new mail.log file as root, but the permissions were wrong. So I had to change the permissions ans the file owner. Here's exactly what I did:
- Create a new mail.log file
sudo touch /var/log/mail.log - Change the owner to syslog:adm
sudo chown syslog:adm /var/log/mail.log - Change the permissions to -rw-r----- on mail.log
sudo chmod 640 mail.log