Sky*_*ich 7 linux postfix logwatch
我在 /usr/share/logwatch/default.conf/logwatch.conf 中更改了 MailFrom=""
这改变了标题中的“发件人:”,但“发件人:”仍然是“root@ip-xx-xx-xx-xx.domain”
EC2 Linux AMI 测试版,Postfix 是邮件程序
小智 6
通过谷歌到达这里,遇到同样的问题。
将“-f 用户”选项添加到 sendmail 中/usr/share/logwatch/default.conf/logwatch.conf没有任何效果。
结果是 logwatch.pl/usr/share/logwatch/dist.conf/logwatch.conf在/usr/share/logwatch/default.conf/logwatch.conf.
编辑或删除MailFrom = root覆盖/usr/share/logwatch/dist.conf/logwatch.conf以使其工作。
可以在多个位置指定 Logwatch 配置详细信息,每个位置都会取代前一个位置:
/usr/share/logwatch/default.conf/*
/etc/logwatch/conf/dist.conf/*
/etc/logwatch/conf/*
The script / command line arguments
Run Code Online (Sandbox Code Playgroud)
建议更改:/etc/logwatch/conf/logwatch.conf