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.

exim_mainlog - how often rotate?

Discussion in 'General Discussion' started by SupermanInNY, Jun 6, 2006.

  1. SupermanInNY

    SupermanInNY Well-Known Member

    Joined:
    Jul 19, 2003
    Messages:
    255
    Likes Received:
    0
    Trophy Points:
    16
    Hi All,

    I need to investiage an email that is not showing up, not being delivered etc.

    I started looking at exim_mainlog, but this is a huge file - 250MB and runs all the way back
    to February.

    This is of course makes it very hard if not possible to work with.

    Is there a log rotation or something that needs to be ran so that I get a managable size
    file, perhaps a new file each month?

    Thanks,

    -Alon.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Depending on your OS, it should be being rotated by logrotate - is that running? It's usually initiated in the daily cron /var/log/daily/logrotate - make sure it isn't kicking out any errors when it does run.
     
  3. SupermanInNY

    SupermanInNY Well-Known Member

    Joined:
    Jul 19, 2003
    Messages:
    255
    Likes Received:
    0
    Trophy Points:
    16

    RH9
    And when I ran this command manually:

    /usr/sbin/logrotate /etc/logrotate.conf

    I got this msg on screen:

    error: Ignoring httpd.rpmorig, because of .rpmorig ending

    However,. it did run through and now I have a new 200K size of exim_mainlog

    Thanks! I can now finally open the file and start exploring the problems :)

    -Alon.
     
Loading...

Share This Page