1つのシステムだけが中継アクセスを拒否しましたか?

1つのシステムだけが中継アクセスを拒否しましたか?

したがって、最初のコンピュータ(SLE12 SP5)では動作しますが、2番目のコンピュータ(SLE12 SP4)では動作しないサフィックスリレーがあります。両方のコンピュータは同じドメインにあり、同じローカルネットワークと同じサブネットにあります。

ファイル/etc/hostsはリレーでいっぱいです。

(postfix's ip)   postfix.local-domain.com   postfix   external-domain.com

ファイルresolv.confは正しいフィールドで埋められます。

domain local-domain.com
search local-domain.com

両方とも、ローカルネットワークを介したデフォルトパスがあります。

ip route show
default via (subnet gateway) dev eth0
(subnet ip/mask) dev eth0 proto kernel scope link src (machine's ip)

これは私が使用するコマンドです:

echo "This is first machine" | mailx -s "This is Subject" -S smtp="postfix" -v [email protected]

最初のコンピュータの結果:

Resolving host postfix . . . done.
Connecting to (postfix's ip):smtp . . . connected.
220 postfix.local-domain.com ESMTP Postfix
>>> HELO firstmachine.local-domain.com
250 postfix.local-domain.com
>>> MAIL FROM:<[email protected]>
250 2.1.0 Ok
>>> RCPT TO:<[email protected]>
250 2.1.5 Ok
>>> DATA
354 End data with <CR><LF>.<CR><LF>
>>> .
250 2.0.0 Ok: queued as 6B5954D443
>>> QUIT
221 2.0.0 Bye

2番目のシステムでも同じコマンド:

echo "This is second machine" | mailx -s "This is Subject" -S smtp="postfix" -v [email protected]

2番目のコンピュータの結果:

Resolving host postfix . . . done.
Connecting to (postfix's ip):smtp . . . connected.
220 postfix.local-domain.com ESMTP Postfix
>>> HELO secondmachine.local-domain.com
250 postfix.local-domain.com
>>> MAIL FROM:<[email protected]>
250 2.1.0 Ok
>>> RCPT TO:<[email protected]>
554 5.7.1 <[email protected]>: Relay access denied
smtp-server: 554 5.7.1 <[email protected]>: Relay access denied
"/root/dead.letter" 11/361
. . . message not sent.

/root/dead.letter ファイルの内容:

This is second machine
Date: Wed, 23 Jun 2021 11:34:01 +0200
From: [email protected]
To: [email protected]
Subject: This is Subject
Message-ID: <60d30009.yXYpk0su5Y1hKjCx%[email protected]>
User-Agent: Heirloom mailx 12.5 7/5/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

ここで何か抜けましたか?まだ学んでいるので、皆さんの知識を自由に共有してください!

ベストアンサー1

誰かが同じ状況に直面する場合に備えて、私の投稿に答えています。

その後、マシンが接続されているかどうかを判断するファイルがあることがわかりました。

main.cfファイルから:

smtpd_client_restrictions = check_client_access hash:/etc/postfix/maps/access_client

/etc/postfix/maps/access_clientファイルから:

(second machine's ip)     OK

次に、次のコマンドを入力します。

postmap hash:/etc/postfix/maps/access_client

次に postfix サービスを再起動します。

service postfix restart

私のために働く

おすすめ記事