Skylervich Asked: 2011-06-15 09:07:39 +0800 CST2011-06-15 09:07:39 +0800 CST 2011-06-15 09:07:39 +0800 CST How to change "sender:" field in the header of Logwatch emails 772 I changed MailFrom="" in /usr/share/logwatch/default.conf/logwatch.conf That altered "From:" in the headers, but "Sender:" is still "root@ip-xx-xx-xx-xx.domain" EC2 Linux AMI beta, Postfix is the mailer linux postfix logwatch 2 Answers Voted drgrog 2012-04-20T17:29:52+08:002012-04-20T17:29:52+08:00 Arrived here via google with the same problem. Adding the "-f user" option to sendmail in /usr/share/logwatch/default.conf/logwatch.conf had no effect. Turns out logwatch.pl processes /usr/share/logwatch/dist.conf/logwatch.conf after /usr/share/logwatch/default.conf/logwatch.conf. Edit or remove the MailFrom = root override in /usr/share/logwatch/dist.conf/logwatch.conf for it to work. Michael 2014-07-19T12:00:32+08:002014-07-19T12:00:32+08:00 There are several locations where Logwatch configuration details can be specified, with each one superseding the previous one: /usr/share/logwatch/default.conf/* /etc/logwatch/conf/dist.conf/* /etc/logwatch/conf/* The script / command line arguments It is recommended to change: /etc/logwatch/conf/logwatch.conf
Arrived here via google with the same problem.
Adding the "-f user" option to sendmail in
/usr/share/logwatch/default.conf/logwatch.conf
had no effect.Turns out logwatch.pl processes
/usr/share/logwatch/dist.conf/logwatch.conf
after/usr/share/logwatch/default.conf/logwatch.conf
.Edit or remove the
MailFrom = root
override in/usr/share/logwatch/dist.conf/logwatch.conf
for it to work.There are several locations where Logwatch configuration details can be specified, with each one superseding the previous one:
It is recommended to change:
/etc/logwatch/conf/logwatch.conf