Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this questionI have a ubuntu server which handles mail via postfix. The server has recently been caned by spam emails and the mail logs are really large as a consequen开发者_开发知识库ce. The logs are stored with timestamps and I was just wondering if I can just clear out the old logs without consequence to recover some disk space?
Also, being none-too-clever about such things, I am struggling to see where to change the settings for log rotation and deletion... any clues from more knowledgable folks?
Is this a question for serverfault.com ? If not, try logrotate
.
According to man logrotate
:
logrotate is designed to ease administration of systems that generate large
numbers of log files. It allows automatic rotation, compression, removal, and
mailing of log files. Each log file may be handled daily, weekly, monthly, or
when it grows too large.
精彩评论