Results 1 to 3 of 3

Thread: Rotation of EXIM logs

  1. #1
    Member
    Join Date
    Apr 2005
    Posts
    246

    Default Rotation of EXIM logs

    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. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,496

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Apr 2005
    Posts
    246

    Cool

    Thanks Chirpy, you rock man!

Similar Threads

  1. Status says Exim down, logs say Exim up.
    By jenlepp in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 02-12-2007, 05:03 PM
  2. Exim Logs-- What is this?
    By wscreate in forum cPanel & WHM Discussions
    Replies: 21
    Last Post: 11-07-2004, 11:46 PM
  3. exim log rotation - keeping logs longer
    By jamesbond in forum cPanel & WHM Discussions
    Replies: 7
    Last Post: 07-17-2004, 07:08 AM
  4. Where are the exim logs
    By welo in forum New User Questions
    Replies: 8
    Last Post: 05-03-2004, 02:19 PM
  5. Logs rotation
    By dwh in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 04-24-2002, 03:06 AM