• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

maillog logrotate config

L

lluis

Guest
Hi,
I want to add a prerotate entry to logrotate config for qmail maillog, but I can't find the correct file.
I looked at
/usr/local/psa/etc/logrotate.d
/usr/local/psa/etc/logrotate.conf*
/etc/logrotate.d/
but I can't find entries for /usr/local/psa/var/log/maillog file

at /usr/local/psa/etc/logrotate.conf.in I found this entry:
@@PRODUCT_ROOT_D@@/var/log/maillog.processed {
missingok
rotate 3
size 10M
compress
nocreate
}

but it seems only for .processed
where can I add a prerotate option for /usr/local/psa/var/log/maillog file?

thanks in advance
 
hi,

We also only have 3 x maillog.processed files every day.
Now we got 4 :)

We did increase the one you mentioned:
/usr/local/psa/var/log/maillog.processed {
missingok
rotate 14
size 10M
compress
nocreate
}

Just try, it should works. Our Plesk version is 8.4 btw.

Patrick
 
rotation of /opt/psa/var/log/maillog is handled by /etc/cron.weekly/sysklogd. See output of 'syslogd-listfiles --weekly'.
 
Hi there! I've found that my mail log file is quite huge:

root@v22597:~# ls -l /opt/psa/var/log/maillog
-rw-r--r-- 1 syslog adm 113618267 2009-10-10 16:15 /opt/psa/var/log/maillog

It looks for me that it's not rotated...

But I cab see:

root@v22597:~# syslogd-listfiles --weekly
/var/log/mail.warn
/var/log/user.log
/var/log/daemon.log
/var/log/messages
/var/log/debug
/var/logauth.log
/opt/psa/var/log/maillog
/var/logmail.err
/var/log/kern.log
/var/log/lpr.log
/var/log/mail.info

Please advice how can I decrease such a big size of mail log?
 
Back
Top