Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/usr out of space due mailman logs

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

  1. ralbano

    ralbano Member

    Joined:
    Mar 9, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    51
    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!.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. sven4o

    sven4o Member

    Joined:
    May 21, 2007
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    151
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice