我正在尝试以[email protected]的forms发送电子邮件。 主机名称是机器的名称。 这样我知道哪些机器发送警报。
在Debian 8上运行postfix。我创build了一个通用文件并列出
[email protected] [email protected]
在修改main.cf以引用通用文件后,运行后映射generics并重新启动后缀。
当我以root身份发送邮件时,它仍以[email protected]身份到达postfix服务器。
任何想法我做错了什么?
在一个非postfix的机器上,只运行exim4,电子邮件将作为[email protected]发送,但是在from字段(名称)中发送根。 我怎样才能删除名称? 我只是从/ etc / passwd中删除名称根?
你唯一需要做的就是在exim的config的begin rewrite部分添加适当的行:
begin rewrite . . . . . . [email protected] [email protected] Ffrsw
这里标志Ffrs定义了什么标题将被重写:
<Root> [email protected]成为[email protected] 对于Postfix,
echo 'root [email protected]' >> /etc/postfix/generic postmap /etc/postfix/generic postconf -e smtp_generic_maps=hash:/etc/postfix/generic service postfix restart
只是将源名称映射到您希望它来自的电子邮件地址。