• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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