Postfix 对 main.cf 的更改未加载

Postfix 对 main.cf 的更改未加载

Ubuntu 10.04 LTS

root@vm1613:/etc/postfix# vim /etc/postfix/main.cf

[...]
# default restrictions
smtpd_sender_restrictions = check_sender_access hash:/var/spool/postfix/plesk/blacklists, permit_sasl_authenticated, check_client_access pcre:/var/spool/postfix/plesk/non_auth.re
smtpd_client_restrictions = permit_mynetworks
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
[...]

root@vm1613:/etc/postfix# postfix check
root@vm1613:/etc/postfix#

root@vm1613:/etc/courier# service postfix restart
 * Stopping Postfix Mail Transport Agent postfix                                                                                                                                                                                                                        [ OK ]
 * Starting Postfix Mail Transport Agent postfix   

当我检查smtpd_recipient_restrictions结果是:

root@vm1613:/etc/courier# postconf -d smtpd_recipient_restrictions
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination

为什么?

为什么 main.cf 没有“加载”到 Postfix 中?

答案1

您正在运行“postconf -d”,请查看手册页。这会打印默认设置而不是实际设置。将“-d”从命令中去掉,您应该会看到您期望的结果。

相关内容