我想要做的是:
为外发邮件设置SMTP中继,其中:
(a)所有发件人:标题被重写为"no-reply@example.com"
(b)添加了回复:标题,其中包含原始发件人:地址
我使用sender_cannoical_maps和header_checks,每个内容如下:
sender_canonical_maps:
/.*/ no-reply@example.com
Run Code Online (Sandbox Code Playgroud)
header_checks:
/^From:(.*)$/ PREPEND Reply-To:$1
Run Code Online (Sandbox Code Playgroud)
但是当收到消息时,无回复地址包含在Reply-To:字段中,我不想要:
to: end-user@example.com
from: no-reply@example.com
reply-to: no-reply@example.com, sender@domain.com
Run Code Online (Sandbox Code Playgroud)
如果我将header_checks更改为使用REPLACE而不是PREPEND,则会丢失被覆盖的原始发件人:
to: end-user@example.com
from: no-reply@example.com
reply-to: no-reply@example.com
Run Code Online (Sandbox Code Playgroud)
所以我丢失了sender@domain.com.
我在这做错了什么?对于任何缺乏信息,请提前道歉.