这改变了标题中的“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覆盖以使其正常工作.