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!

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:
    166
    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,460
    Likes Received:
    21
    Trophy Points:
    463
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. SupermanInNY

    SupermanInNY Well-Known Member

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

    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

  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