Email Logs Issue
Hello,
I am facing some issues, one of my customer is asking me for a logs of emails for may 2018. I am not able to find logs. I have checked /var/log directory there are only files below:
-rw-r----- 1 mailnull mail 85789676 Dec 9 03:46 exim_mainlog-20181209
-rw-r----- 1 mailnull mail 128231912 Dec 16 03:15 exim_mainlog-20181216
-rw-r----- 1 mailnull mail 100765757 Dec 23 03:16 exim_mainlog-20181223
-rw-r----- 1 mailnull mail 58690041 Dec 30 03:07 exim_mainlog-20181230
Please tell me where all my old logs gone why cpanel itself delete logs. It is really important now.
-
Yes those would have long since rotated out. Logs are not set to be kept forever. 0 -
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 -
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 -
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 -
/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 -
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 -
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 -
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 -
Looks fine. 0 -
Just keep an eye on your /var partition because this can fill it up. 0 -
Looks fine.
Thank you.0 -
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.
Comments
12 comments