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.

exim mainlog

Discussion in 'General Discussion' started by ckh, Jan 29, 2004.

  1. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
    My exim mainlog and rejectlog aren't being cycled so they grow rather big.

    The reason is that they are looking for exim_mainlog and exim_rejectlog when the cycling occurs. They aren't found because for some reason cPanel defaults to putting them in a /var/log/exim/ with names of mainlog and rejectlog.

    What file do I need to go to or what configuration file would I need to go to to change that?

    CKH
     
  2. sjackson909

    sjackson909 Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Columbus, OH
    Yes I'm running into the say problem. This is still not resolved. I'm thinking about adding it /etc/newsyslog.conf.
    Anyone have any other fixs or hacks for this?

    WHM 9.4.0 cPanel 9.4.1-S70
    FreeBSD 4.10-RELEASE - WHM X v3.1.0
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Must be an issue of the port from Linux over to FreeBSD. Does FreeBSD use logrotate? On Linux servers the logs are rotated according to file entries in /etc/logrotate.d/ and /etc/logrotate.conf. If the OS doesn't use that, then ignore that.

    I'd suggest logging a bugzilla entry since it's obviously an oversight on the FreeBSD platform port.
     
  4. sjackson909

    sjackson909 Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Columbus, OH
    Yea, looks like I should do that. I'm kinda sick or rolling them my self mv mainlog; touch mainlog; chmod mailnull:mailnull mainlog blah.
     
  5. sjackson909

    sjackson909 Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Columbus, OH
    For FreeBsd ppl having problems with the exim logs getting big. Add theses lines to /etc/newsyslog.conf

    /var/log/exim/mainlog mailnull:mailnull 640 5 * $D0 Z
    /var/log/exim/paniclog mailnull:mailnull 640 5 * $D0 Z
    /var/log/exim/rejectlog mailnull:mailnull 640 5 * $D0 Z

    This is a good fix. Still waiting on cpanel to resolve this.

    Thanks
    -Seth
     
Loading...

Share This Page