我在/usr/share/logwatch/default.conf/logwatch.conf中更改了MailFrom =“”
这改变了标题中的“From:”,但“Sender:”仍然是“root@ip-xx-xx-xx-xx.domain”
EC2 Linux AMI测试版,
Postfix是邮件程序
通过谷歌到达这里同样的问题.
在/usr/share/logwatch/default.conf/logwatch.conf中向sendmail添加“-f user”选项无效.
在/usr/share/logwatch/default.conf/logwatch.conf之后输出logwatch.pl进程/usr/share/logwatch/dist.conf/logwatch.conf.
编辑或删除/usr/share/logwatch/dist.conf/logwatch.conf中的MailFrom = root覆盖以使其正常工作.
原文链接:https://www.f2er.com/linux/399672.html