• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Maillog empty after delete

whnunlife

New Pleskian
So last night I was tracking down a issue with spam coming from my box. In the process, I did the following in a terminal:

path: /usr/local/psa/var/log

rm maillog
touch maillog

Now, before I deleted it, it was full of all these entries from spammers and so on, but after deleting and touching it, the file is empty.

I verified file permissions before I deleted it, and have restarted postfix. But the file is always empt. Anyway to fix this issue?
 
Try running

# restorecon /usr/local/psa/var/log/maillog

if you use SELinux. This will restore security context.
 
Just ran the command, and the file after 10 - 20 minutes is still empty.

Damm, I shouldn't of deleted it last night :(
 
Don't worry. Just remove the log file. With any luck it will be recreated with acceptable permissions.
 
Back
Top