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.

Rotation of EXIM logs

Discussion in 'General Discussion' started by erick_paper, May 29, 2005.

  1. erick_paper

    erick_paper Well-Known Member

    Joined:
    Apr 19, 2005
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Does anyone know how exim_mainlog and _rejectlog are rotated by default on cpanel? Do I need to set it up myself? I checked up cron.daily/hourly/weekly/monthly, but it's nowhere to be found. My current logrotate.conf doesn't have an exim entry either. Thanks for any info.
     
  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
    It's done by logrotate using the config file in /etc/logrotate.d/exim. If your logs are not rotating, make sure that the logrotate job is running in either /etc/cron.daily or /etc/cron.weekly (I'd recommend always having it in /etc/cron.daily. You can also run the logs yourself to check for errors:

    /usr/sbin/logrotate -vf /etc/logrotate.conf

    If you're running on FC2 with a /tmp directory mounted noexec you will need to modify /etc/logrotate.conf to use a different TMPDIR as there's a bug in FC2 logrotate that probably isn't going to be fixed now that it's been EOL'd.
     
  3. erick_paper

    erick_paper Well-Known Member

    Joined:
    Apr 19, 2005
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Thanks Chirpy, you rock man!
     
Loading...

Share This Page