【发布时间】:2015-04-13 12:28:41
【问题描述】:
我在 ubuntu 使用 postfix 从 PHP 发送邮件:
mail($to, $subject, $body, "Return-Path: <test@mail.com>");
尝试设置 Return-Path 标头,但似乎 postfix 将其重写为 user@serverdomain
在后缀文档中找到 message_drop_headers 变量,默认值为 bcc, content-length, resent-bcc, return-path
试图更改它在postfix/main.cf 中的值,但它在开始时给出警告:
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: message_drop_headers=bcc content-length resent-bcc
可能是什么原因?如何配置 postfix 不重写 Return-Path 标头?
【问题讨论】:
标签: php email postfix-mta return-path