我的机器上安装了postfix 。 我也使用generic映射覆盖从ubuntu到[email protected]的电子邮件地址:
/etc/postfix/generic ubuntu [email protected]
有了这个通用的映射,电子邮件来自"Ubuntu" <[email protected]> 。 但是我也想覆盖从发件人的名称到Server1 ,以便我从"Server1" <[email protected]>收到电子邮件。
如何在postfixconfiguration这个?
通常情况下, MTA使用系统中的configuration,所以如果你的用户名'ubuntu'没有设置全名,那么他的所有电子邮件都会没有名字,或者是你设置的名字“ubuntu”login只是“Ubuntu”,因为你说所有的电子邮件都是"Ubuntu" <[email protected]"
要解决此问题,请尝试以root用户身份使用此命令,然后再次发送电子邮件
# chfn -f "Server1" ubuntu
希望能帮助到你 ;)