質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Postfix

Postfixは、電子メールサーバソフトウェアで、 メールを配送するシステムMTAの一種です。

Q&A

解決済

2回答

1278閲覧

Postfixのホワイトリストについて

hoge2018

総合スコア11

Postfix

Postfixは、電子メールサーバソフトウェアで、 メールを配送するシステムMTAの一種です。

0グッド

0クリップ

投稿2022/10/26 03:54

実現したいこと

CentOS 6.7
Postfix mail_version = 2.6.6

逆引きできない特定のIPアドレスのメールを受信したいです。
main.cfの記述の正確さに自信がなく、
下記設定内容に問題がないかご教示いただきたく存じます。

どうぞよろしくお願いいたします。

発生している問題・エラーメッセージ

/var/log/maillog

Oct 25 09:48:07 ik1-338-29428 postfix/smtpd[25921]: NOQUEUE: reject: RCPT from unknown[125.xxx.xxx.xx]: 450 4.7.1 Client host rejected: cannot find your hostname, [125.xxx.xxx.xx]; from=<xxx@xxxco.jp> to=<xxx@xxx.com> proto=ESMTP helo=<xxx@xxxco.jp>

/etc/postfix/main.cf

smtpd_sender_restrictions = check_sender_access regexp:/etc/postfix/reject_sender smtpd_client_restrictions = check_client_access hash:/etc/postfix/access ~省略~ smtpd_sasl_auth_enable = yes smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_tls_auth_only = no smtp_sasl_mechanism_filter = plain smtpd_sasl_local_domain = $mydomain smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unknown_client, reject_rbl_client sbl.spamhaus.org mailbox_size_limit = 0 message_size_limit = 0

/etc/postfix/access

125.xxx.xxx.xx OK

/etc/postfix/reject_sender

/\.xyz$/ DISCARD

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

CHERRY

2022/10/26 10:12

設定ファイルですが、現在はどのようになっていて、どの部分を修正されたのでしょうか。
hoge2018

2022/10/26 10:16

コメントありがとうございます。 現在稼働中の設定は、下記コードを除いた内容になっております。 [ main,cf ] smtpd_client_restrictions = check_client_access hash:/etc/postfix/access
guest

回答2

0

ベストアンサー

smtpd_recipient_restrictionsreject_unknown_client で拒否されています。
smtpd_client_restrictions で許可したとしても、それとは別に smtpd_recipient_restrictions が評価され拒否されます。

なので、smtpd_client_restrictions ではなく、smtpd_recipient_restrictions を修正し、reject_unknown_client の直前に許可するといいと思います。

smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_client_access hash:/etc/postfix/access, reject_unknown_client, reject_rbl_client sbl.spamhaus.org

投稿2022/10/26 13:13

TaichiYanagiya

総合スコア12141

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

hoge2018

2022/10/26 13:32

ありがとうございます! 勉強させていただきます!
guest

0

アドバイス頂いた通りで解決いたしました。
ありがとうございます!

投稿2022/10/31 05:22

hoge2018

総合スコア11

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問