开发者

server mail logs too large [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

I 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.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜