我在/usr/share/logwatch/default.conf/logwatch.conf中更改了MailFrom =“”
在头文件中改变了“From:”,但“Sender:”仍然是“[email protected]”
EC2 Linux AMI beta,Postfix是邮件程序
通过谷歌到达这里同样的问题。
在/usr/share/logwatch/default.conf/logwatch.conf向sendmail添加“-f user”选项不起作用。
在/usr/share/logwatch/dist.conf/logwatch.conf之后,logwatch.pl进程/usr/share/logwatch/default.conf/logwatch.conf 。
编辑或删除/usr/share/logwatch/dist.conf/logwatch.conf中的MailFrom = root覆盖以使其MailFrom = root 。
有几个位置可以指定Logwatchconfiguration详细信息,每个位置都取代前一个:
/usr/share/logwatch/default.conf/* /etc/logwatch/conf/dist.conf/* /etc/logwatch/conf/* The script / command line arguments
build议更改: /etc/logwatch/conf/logwatch.conf