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.

can i delete maillog.1, maillog.2 under /logs

Discussion in 'E-mail Discussions' started by radical, Oct 20, 2005.

  1. radical

    radical Well-Known Member

    Joined:
    Nov 4, 2003
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    hi

    my /var usage has been steadily increasing. on checking , i found the /log directory using more than 1.6 gb, and under that i found these files using max disk space

    243M maillog.1
    281M maillog.2
    280M maillog.3
    285M maillog.4

    can i safely delete using the rm command, without messing up anything else (mailscanner/exim etc..)

    also are these logs supposed to get deleted automatically, since i noticed, the /var filling up only after the last update. my whm/cpanel versions are

    WHM 10.6.0 cPanel 10.8.0-R65
    RedHat Enterprise 3 i686 - WHM X v3.1.0

    thanks
    Sunny
     
  2. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Fremont CA
    delete away...delete away
     
  3. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    You can delete old logs but just as a suggestion, you might want to BZIP2 them ...

    BZIP2 is one of the tightest compression utilities I've seen and the output
    files are drastically smaller than anything produced by ZIP, TAR, or GZIP

    > bzip2 maillog.1

    If you haven't used BZIP2 before, you'll be shocked ...
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Alternatively, you could modify the logrotate configuration files to zip them for you, thus avoiding having to do it manually.
     
Loading...

Share This Page