Skip to main content

Email Logs Issue

Comments

12 comments

  • GOT
    Yes those would have long since rotated out. Logs are not set to be kept forever.
    0
  • efuzone
    Yes those would have long since rotated out. Logs are not set to be kept forever.

    But sir what reply i should give to my customer :(. Its just 7 months old logs.
    0
  • GOT
    There is absolutely nothing that can be done at this point. By default, cPanel sets logrotate to keep a month's worth of exim logs. All you can do now is change that rotation setting moving forward, but make sure you have PLENTY of space on /var to do so.
    0
  • efuzone
    There is absolutely nothing that can be done at this point. By default, cPanel sets logrotate to keep a month's worth of exim logs. All you can do now is change that rotation setting moving forward, but make sure you have PLENTY of space on /var to do so.

    Hello, Tell me from where i increase this for future.
    0
  • GOT
    /etc/logrotate.conf has the default retention. Set to rotate weekly and keep 4 weeks. Increase the 4 weeks to whatever you ant to keep. This will affect all logs though. if you just want to set this for exim logs, you would edit /etc/logrotate.d/exim
    0
  • efuzone
    Hello, nano /etc/logrotate.d/exim there is no time frame please guide. /var/log/exim_mainlog { create 0640 mailnull mail compress postrotate /usr/bin/killall -HUP exim endscript } /var/log/exim_paniclog { missingok create 0640 mailnull mail compress postrotate /usr/bin/killall -HUP exim endscript } /var/log/exim_rejectlog { create 0640 mailnull mail compress postrotate /usr/bin/killall -HUP exim endscript }
    0
  • GOT
    Add weekly rotate X Where X is the number of weeks you want to keep. Add it just before the compress line in each section.
    0
  • efuzone
    Add weekly rotate X Where X is the number of weeks you want to keep. Add it just before the compress line in each section.

    /var/log/exim_mainlog { create 0640 mailnull mail weekly rotate 44 compress postrotate /usr/bin/killall -HUP exim endscript } is it fine.
    0
  • GOT
    Looks fine.
    0
  • GOT
    Just keep an eye on your /var partition because this can fill it up.
    0
  • efuzone
    Looks fine.

    Thank you.
    0
  • cPanelLauren
    Storing logs for this long could pose a serious issue with space but @GOT's advice is correct.
    0

Please sign in to leave a comment.