• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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