我按照本指南设置了POSTFIX网络服务器https://www.digitalocean.com/community/tutorials/how-to-set-up-a-postfix-e-mail-server-with-dovecot。
从那里,我使用了这些设置:
myhostname = mail.domain.com
myorigin = /etc/mailname
mydestination = mail.domain.com, domain.com, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
它工作正常,除了mail命令从user@hostname.domain发送电子邮件,而不是user @ domain。显然,这些电子邮件也无法回复。这是POSTFIX中我可以更改的设置吗?
答案 0 :(得分:0)
您要查找的参数是myorigin
。更改文件/etc/mailname
会更改发件人地址。见http://www.postfix.org/postconf.5.html#myorigin