• 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 rotation

F

FulvioC

Guest
Hi, I have a plesk panel 8.3 installed with Qmail and spamassassin.

I would like to keep mail logs for at least 2 months, but I can't find anything to configure in web interface neither via shell.

The only way I found is to reconfigure syslog to log mail.* into a different file ( and not into the default one /usr/local/psa/var/log/maillog) and then rotate it via logrotate.

Another way is to run a custom shell script via cron, that copy the maillog into another place and then elaborate it..

But i like to keep an "official" way.

Is there a configuration that allows me to specify how many logs and how many time the system has to keep them?

thanks in advance,

k.
 
Have a look at /etc/logrotate.conf or the entry's in /etc/logrotate.d.
Also try: man logrotate.

Erland.
 
/usr/local/psa/var/log/maillog isn't rotated by logrotate, is the first place where I search something to configure..

I think is rotated by /usr/local/psa/bin/statistics but I don't find any doc that explain this..

does anyone know who rotates the maillogs? is there a way to tune it?

thanks
 
Solved!

does anyone know who rotates the maillogs? is there a way to tune it?

Finally, i found where it is configurated, it uses a custom logrotate and a custom config file located in
/etc/psa/logrotate.conf.

thanks anyway :)
 
Back
Top