• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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