使用 postfix 和 postgres 时配置错误

使用 postfix 和 postgres 时配置错误

我已经安装了 postgre,并将以下内容添加到 main.cf:

smtpd_recipient_restrictions =
    permit_mynetworks
    permit_sasl_authenticated
    reject_unauth_destination
    check_policy_service inet:127.0.0.1:10023

现在我的 postfix 不再转发任何邮件。它提供以下消息:

May 18 18:54:43 r2 postfix/smtpd[3351]: connect from mx02.posteo.de[89.146.194.165]
May 18 18:54:43 r2 postfix/smtpd[3351]: warning: premature end-of-input on 127.0.0.1:10023 while reading input attribute name
May 18 18:54:44 r2 postfix/smtpd[3351]: warning: premature end-of-input on 127.0.0.1:10023 while reading input attribute name
May 18 18:54:44 r2 postfix/smtpd[3351]: warning: problem talking to server 127.0.0.1:10023: Success
May 18 18:54:44 r2 postfix/smtpd[3351]: NOQUEUE: reject: RCPT from mx02.posteo.de[89.146.194.165]: 451 4.3.5 Server configuration problem; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mx02.posteo.de>
May 18 18:54:44 r2 postfix/smtpd[3351]: disconnect from mx02.posteo.de[89.146.194.165]

有什么想法可能出错了?或者如何找出我遇到的“服务器配置问题”?

答案1

每条规则后面都缺少逗号,应该是:

smtpd_recipient_restrictions =
    permit_mynetworks,
    permit_sasl_authenticated,
    reject_unauth_destination,
    check_policy_service inet:127.0.0.1:1002

相关内容