linux – 如何更改Logwatch电子邮件标题中的“sender:”字段
发布时间:2020-12-13 17:12:55 所属栏目:Linux 来源:网络整理
导读:我在/usr/share/logwatch/default.conf/logwatch.conf中更改了MailFrom =“” 这改变了标题中的“From:”,但“Sender:”仍然是“root@ip-xx-xx-xx-xx.domain” EC2 Linux AMI测试版, Postfix是邮件程序 解决方法 通过谷歌到达这里同样的问题. 在/usr/share
我在/usr/share/logwatch/default.conf/logwatch.conf中更改了MailFrom =“”
这改变了标题中的“From:”,但“Sender:”仍然是“root@ip-xx-xx-xx-xx.domain” EC2 Linux AMI测试版, 解决方法
通过谷歌到达这里同样的问题.
在/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覆盖以使其正常工作. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |