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.

reduce exim logs

Discussion in 'General Discussion' started by simplybe, Aug 15, 2006.

  1. simplybe

    simplybe Well-Known Member

    Joined:
    Nov 29, 2002
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    Hi,
    can anyone help me, I need to reduce the amount that is written to the exim main_log. I have rbl filters in place and the rejected messages are filling up exim logs quickly.

    I want to stop these being written to the exim logs and other events such as queue runs etc..

    I have tried the log_selector = option but can't seem to get it to stop writing to the logs.

    Thanks
     
  2. RickG

    RickG Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    238
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    North Carolina
    IMHO a better approach would be to rotate the logs more frequently which you can control through /etc/logrotate.conf and /etc/logrotate.d/exim. You never know when you might need that information to troubleshoot an issue.

    How large are the logs getting?
     
  3. simplybe

    simplybe Well-Known Member

    Joined:
    Nov 29, 2002
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    Hi,
    The 2 main reasons i want to reduce the amount written to the logs is

    1 to reduce the space used in /var
    2 to reduce the load on the hd

    Rotating them still uses too much space in /var and does not reduce the load on the hd. I am not looking to stop all logs but just stop the spam rbl rejected ones from being written to the logs.

    There are 1000's per day of 'this messages was rejected because ip is listed at spamhaus' etc..

    I have no need for this info in the logs. The log i removed yesterday was 2GB.

    Reading the exim docs log_selector = can add extra info to logs or remove it by using the + or - sign

    something like
    log_selector = +all -dnslist_defer

    should work but i can't seem to get it to.

    thanks
     
  4. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
  5. simplybe

    simplybe Well-Known Member

    Joined:
    Nov 29, 2002
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    hi,
    yes I already read the docs but it does not seem to make any difference using log_selector = -


    still get the same logs
     
Loading...

Share This Page