1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

maillog logrotate config

Discussion in 'Plesk for Linux - 8.x and Older' started by lluis, Jun 3, 2008.

  1. lluis

    lluis Guest

    0
     
    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
     
  2. 19patje72

    19patje72 New Pleskian

    22
    57%
    Joined:
    Apr 12, 2007
    Messages:
    24
    Likes Received:
    0
    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
     
  3. insel

    insel Guest

    0
     
    rotation of /opt/psa/var/log/maillog is handled by /etc/cron.weekly/sysklogd. See output of 'syslogd-listfiles --weekly'.
     
  4. DanilS

    DanilS Guest

    0
     
    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?
     
Loading...