linux – 如何更改Logwatch电子邮件标题中的“sender:”字段

linux – 如何更改Logwatch电子邮件标题中的“sender:”字段,第1张

概述我在/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.co 我在/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覆盖以使其正常工作.

总结

以上是内存溢出为你收集整理的linux – 如何更改Logwatch电子邮件标题中的“sender:”字段全部内容,希望文章能够帮你解决linux – 如何更改Logwatch电子邮件标题中的“sender:”字段所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1040794.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存