Postfix回复邮件给外部电子邮件,同时保持正确的地址

我有一个邮件服务器,所有的设置和运行在Ubuntu的14.04与Postfix / Dovecot的域名“postfixserver.com”。

第二个域名“googleapps.com”正在谷歌应用上运行。

[email protected]电子邮件从谷歌应用程序转发到[email protected]

[email protected]回复发给[email protected]的邮件时,我希望postfix将邮件从[email protected]发送出去。

有没有什么办法可以实现这一点,而不必依靠电子邮件客户端。 因此,例如在iPhone上,我只想设置一个帐户[email protected],但能够回复发送到[email protected]的电子邮件,并保留正确的发件人地址。

TLDR: 不,你不能。 这不是MTA工作。


假设外部地址发送电子邮件到gapps域。 这里完整的电子邮件看起来像

From: [email protected] To: [email protected] Subject: Hello World This is 'Hello world' version of email 

由于[email protected]将其转发到postfix.example.org,那么[email protected]将获取并阅读电子邮件。

现在[email protected]想要回复它。 iPhone撰写电子邮件并发送到后缀。 这里的例子回复postfix将从[email protected]看到

 From: [email protected] To: [email protected] Subject: Re: Hello World On 7 Mar 2014, at 21.21, Someone <[email protected]> wrote: > This is 'Hello world' version of email Okay hello world. Your email was received :) 

您可以看到,在第二封电子邮件中没有任何跟踪,[email protected]已经将电子邮件发送到GAPPS.example.net