The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Rotate mailman logs

Discussion in 'E-mail Discussions' started by neonix, Dec 9, 2005.

  1. neonix

    neonix Well-Known Member

    Joined:
    Oct 21, 2004
    Messages:
    124
    Likes Received:
    2
    Trophy Points:
    0
    Hi;

    I noticed that mailman logs were not being rotated -


    root@pac 3 [/usr/local/cpanel/3rdparty/mailman/logs]# ls -alt
    total 40364
    -rw-rw-r-- 1 mailman mailman 5763981 Dec 10 08:00 smtp
    -rw-rw-r-- 1 mailman mailman 141344 Dec 10 05:20 bounce
    -rw-rw-r-- 1 mailman mailman 19075 Dec 10 05:20 vette
    -rw-rw-r-- 1 mailman mailman 149123 Dec 9 17:50 qrunner
    -rw-rw-r-- 1 mailman mailman 7850872 Dec 9 17:34 post
    -rw-rw-r-- 1 mailman mailman 157865 Nov 22 12:42 subscribe
    -rw-rw-r-- 1 mailman mailman 27146157 Nov 20 09:58 smtp-failure
    -rw-rw-r-- 1 mailman mailman 634 Oct 19 09:31 mischief
    drwxrwsr-x 22 mailman mailman 4096 Aug 25 12:17 ../
    -rw-rw-r-- 1 mailman mailman 5281 Aug 16 03:04 error
    drwxrwsr-x 2 mailman mailman 4096 Jun 1 2005 ./




    I have added the below lines to /etc/logrotate.conf to rotate them. Is this correct?


    /usr/local/cpanel/3rdparty/mailman/logs/smtp {
    weekly
    rotate 1
    }

    /usr/local/cpanel/3rdparty/mailman/logs/smtp-failure {
    weekly
    rotate 1
    }

    /usr/local/cpanel/3rdparty/mailman/logs/post {
    weekly
    rotate 1
    }





    OR is it better to add it within /etc/logrotate.d - I am not sure if this will work.

    /usr/local/cpanel/3rdparty/mailman/logs/* {
    missingok
    compress
    postrotate
    endscript
    }


    Thanks for your help.

    Thanks.
     
  2. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    18
    For me, rotating all of the logs is a bad idea. If you ever need to trace a subscribe, it is a lot harder if the logs are gone.
     
  3. neonix

    neonix Well-Known Member

    Joined:
    Oct 21, 2004
    Messages:
    124
    Likes Received:
    2
    Trophy Points:
    0
    -- Bump --
     
  4. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    hey

    I have also just spotted those logs, mine are growing and have dates from APRIL in them.

    I really cant see why rotating them should be a problem.
    Maybe restart syslog or exim once you have rotated them ?

    comments welcome.. pleez :)
    cheers
    Andy
     
  5. neonix

    neonix Well-Known Member

    Joined:
    Oct 21, 2004
    Messages:
    124
    Likes Received:
    2
    Trophy Points:
    0
    What if you rotate a log and a ... big spider crawls from underneath. :D


    My logs are rotating fine after I added these lines.

    /usr/local/cpanel/3rdparty/mailman/logs/smtp {
    weekly
    rotate 1
    }

    /usr/local/cpanel/3rdparty/mailman/logs/smtp-failure {
    weekly
    rotate 1
    }

    /usr/local/cpanel/3rdparty/mailman/logs/post {
    weekly
    rotate 1
    }
     
Loading...

Share This Page