Results 1 to 3 of 3

Thread: Logrotate not working with custom exim logs

  1. #1
    Join Date
    Jan 2006
    Location
    Berkshire, UK
    Posts
    50

    Logrotate not working with custom exim logs

    I use MailScanner + exim which involves separate exim processes for inbound and outbound.

    Having an issue with rotating the exim logs for the inbound process which is the additional one I use. Here's what /etc/logrotate.d/exim has. The various log files in /var/log/exim are rotated correctly but the ones in /var/spool/exim/msglog aren't.

    I made a change today because I noticed I had /var/spool/exim/paniclog and /var/spool/exim/rejectlog instead of /var/spool/exim/msglog/paniclog and /var/spool/exim/msglog/rejectlog so I corrected this. However, since /var/spool/exim/msglog/mainlog is the very large file that isn't being rotated, I can't see that this correction will make any difference.

    Here's my /etc/logrotate.d/exim file:

    Code:
    # cat /etc/logrotate.d/exim
    /var/spool/exim/msglog/mainlog /var/spool/exim/msglog/paniclog /var/spool/exim/msglog/rejectlog /var/log/exim/mainlog /var/log/exim/processlog /var/log/exim/rejectlog /var/log/exim/paniclog {
    sharedscripts
    }
    In /etc/logrotate.conf I have no reference to exim, instead there's this reference:
    Code:
    # RPM packages drop log rotation information into this directory
    include /etc/logrotate.d
    Permissions on /var/spool/exim/msglog/mainlog are identical to /var/log/exim/mainlog

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    Hello,

    Run it in debug mode
    Code:
    logrotate -d /etc/logrotate.conf 2>&1 | less
    and see what is wrong
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  3. #3
    Join Date
    Jan 2006
    Location
    Berkshire, UK
    Posts
    50
    Thanks. Doesn't need anything doing though (rotates weekly):

    rotating pattern: /var/spool/exim/msglog/mainlog /var/spool/exim/msglog/paniclog
    /var/spool/exim/msglog/rejectlog /var/log/exim/mainlog /var/log/exim/processlog
    /var/log/exim/rejectlog /var/log/exim/paniclog weekly (4 rotations)

    empty log files are rotated, old logs are removed
    considering log /var/spool/exim/msglog/mainlog
    log does not need rotating
    considering log /var/spool/exim/msglog/paniclog
    log does not need rotating
    considering log /var/spool/exim/msglog/rejectlog
    log does not need rotating
    considering log /var/log/exim/mainlog
    log does not need rotating
    considering log /var/log/exim/processlog
    log does not need rotating
    considering log /var/log/exim/rejectlog
    log does not need rotating
    considering log /var/log/exim/paniclog
    log does not need rotating

Similar Threads

  1. Exim-Logs additional to Apache Logs on Userlevel
    By johannes in forum General Technical Discussion & Troubleshooting
    Replies: 13
    Last Post: 03-06-2011, 01:38 PM
  2. Add custom logs to Log Viewer
    By Red in forum General Technical Discussion & Troubleshooting
    Replies: 1
    Last Post: 02-10-2011, 07:33 AM
  3. Custom Logging and Separation of Logs.
    By cryptodan in forum Feedback & Feature Requests
    Replies: 6
    Last Post: 03-10-2009, 10:42 AM
  4. custom logs from DA
    By bartkob in forum Apache (WWW)
    Replies: 0
    Last Post: 09-12-2007, 02:36 PM
  5. How to configure logrotate to delete DA logs
    By MagnuM in forum General Technical Discussion & Troubleshooting
    Replies: 7
    Last Post: 07-15-2004, 08:04 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •