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.

/usr out of space due mailman logs

Discussion in 'E-mail Discussions' started by ralbano, Jan 28, 2010.

  1. ralbano

    ralbano Member

    Joined:
    Mar 9, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hello, my usr partition is running out of space dua some mailman logs (/usr/local/cpanel/3rdparty/mailman/logs/smtp-failure).
    How can rotate/limit those logs with cpanel?

    Thank you!.
     
  2. sven4o

    sven4o Member

    Joined:
    May 21, 2007
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    You can add the following lines in the /etc/logrotate.conf file:

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


    In this way the log in the question will be rotated once a week.

    You can run the following command in your server's command prompt in order to get familiar with the logrotate functionality:

    man logrotate

    We know cPanel because our web hosting customers love it!
    Check out our special cPanel hosting package!
     
Loading...

Share This Page