我已经在Debian 7上安装了exim4,将我的服务器上的警报和内容发送到我的Gmail帐户。 我编辑了/ etc / email-addresses并添加了一行:
sysadmin: [email protected]
当我收到邮件时,头部标题为“sysadmin [email protected]”。 如何将其更改为“System Alerts [email protected]”?
我试过编辑logwatch.conf文件:
MailFrom: "System Alerts <[email protected]>"
但是这并没有奏效。
我试过编辑/ etc / email-addresses文件:
sysadmin: "System Alerts <[email protected]"
但是这也不起作用。
除了上面对/etc/email-addresses修改之外,还必须在exim.conf添加一条规则:
begin rewrite *@myServer.myDomain.net ${lookup{$1}lsearch{/etc/email-addresses}\ {$value}fail} frFs
我希望这有帮助。