我需要做的是:
为发出的电子邮件设置SMTP中继,其中:
(a) 所有的From:头都会被重写为"no-reply@example.com"
(b) 添加一个带有原始From:地址的Reply-To:头
我正在使用sender_cannoical_maps和header_checks,每个内容如下:
sender_canonical_maps:
/.*/ no-reply@example.com
header_checks:
/^From:(.*)$/ PREPEND Reply-To:$1
But when a message is received, the no-reply address is included in the Reply-To: field, which I do not want:
to: end-user@example.com
from: no-reply@example.com
reply-to: no-reply@example.com, sender@domain.com
If I change header_checks to use REPLACE instead of PREPEND I lose the original sender which is overwritten:
to: end-user@example.com
from: no-reply@example.com
reply-to: no-reply@example.com
So I have lost sender@domain.com.
What I am doing wrong here? And apologies in advance for any lack of info.