何らかの理由でpostfixはメールの送信を拒否しますが、その理由がわかりません。私が始めた関連行は次のとおりです。
smtpd_recipient_restrictions =
check_policy_service inet:127.0.0.1:10031,
check_client_access hash:/etc/postfix/access_ips,
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination
ここで mynetworks = 127.0.0.0/8 です。これで、postfixを2.3.3から2.11.3とOSにアップグレードしましたが、設定ファイルがまったく変更されていないにもかかわらず、すべてを拒否することがわかりました。設定を次のように変更しました。
smtpd_recipient_restrictions =
# check_policy_service inet:127.0.0.1:10031,
# check_client_access hash:/etc/postfix/access_ips,
# permit_mynetworks,
# permit_sasl_authenticated,
# reject_unauth_destination
permit
しかし、Postfixは依然としてリレーアクセスを拒否します。なぜ?結局、いよいよ許可を受けましたか? smtpd_client_restrictionsが同じ=権限であると言えば十分です。
ベストアンサー1
だから私は答えを見つけました。
更新を終えた後ではなく
smtpd_recipient制限
私は以下を使うべきです:
smtpd_relay_restrictions
これはここに投稿されました:http://www.postfix.org/postconf.5.html#smtpd_relay_restrictions
興味深いことに、ドキュメントには次のように記載されています。
# With Postfix 2.10 and later, the mail relay policy is
# preferably specified under smtpd_relay_restrictions.
smtpd_relay_restrictions =
permit_mynetworks, permit_sasl_authenticated, ...
# With Postfix before 2.10, the relay policy can be
# specified only under smtpd_recipient_restrictions.
smtpd_recipient_restrictions =
permit_mynetworks, permit_sasl_authenticated, ...
したがって、これは前のコマンドが引き続き機能するはずですが、機能しないか完全には理解できない可能性があることを意味します。