Postfix发送电子邮件为root@localhost.foo.com

2024-06-28 11:41:35 发布

您现在位置:Python中文网/ 问答频道 /正文

我们部署了岗哨。我们通过应用程序发送电子邮件没有问题。发件人显示“tail@foo.com“在电子邮件里。在

但是,有个芹菜工人发邮件,因为发件人是“roo@localhost.foo.com“电子邮件被退回。在

我已尝试配置generic,并在中添加了hosname主.cf但没用。在

我的问题是postfix是以root@localhost.foo.com而不是tail@foo.com的形式发送电子邮件。在

我需要更改或执行什么操作才能将电子邮件作为tail@foo.com发送?在


Tags: com应用程序localhostfoo电子邮件部署generic岗哨
1条回答
网友
1楼 · 发布于 2024-06-28 11:41:35

您可以使用以下命令将^{} setting用作解决方法:

$ postconf 'masquerade_domains = $mydomain'

masquerade_domains (default: empty)

Optional list of domains whose subdomain structure will be stripped off in email addresses.

相关问题 更多 >