email - 服务器邮件日志太大

标签 email ubuntu logging postfix-mta

关闭。这个问题是off-topic .它目前不接受答案。












想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。


10年前关闭。







Improve this question




我有一个通过 postfix 处理邮件的 ubuntu 服务器。服务器最近受到垃圾邮件的攻击,因此邮件日志非常大。日志与时间戳一起存储,我只是想知道我是否可以清除旧日志而不会恢复一些磁盘空间?

此外,对这些事情不太聪明,我正在努力寻找在哪里更改日志轮换和删除的设置......来自更多知识渊博的人的任何线索?

最佳答案

这是 serverfault.com 的问题吗?如果没有,请尝试 logrotate .

根据 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.

关于email - 服务器邮件日志太大,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4431876/

相关文章:

java - 如何使用 mstor 阅读 mbox 电子邮件

python - 验证电子邮件未在 ubuntu 的本地服务器中使用 smtp 发送到电子邮件地址

python - Ubuntu 22.04 上的 Django mod_wsgi Apache 错误 403 Forbidden

linux - 无法获取任何内容 - 适用于 Windows 10 的 WSL,正在尝试为 cLion 安装环境

java - 使用 ProGuard 删除调试日志

logging - 无法注册BoringSSL日志调试更新

email - 电子邮件中的 PNG Alpha 透明度

c# - SmtpClient 和 app.config system.net 配置

ubuntu - 总是遇到 “Ambari Server not running, Stale PID File at:/var/run/ambari-server/ambari-server.pid”

java - log4j 看不到 log4j.properties 文件