• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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