postfixを介したSMTPメールのみの送信は、リレーホストによって拒否されます。 (550 - SMTP認証をオンにしてください)

postfixを介したSMTPメールのみの送信は、リレーホストによって拒否されます。 (550 - SMTP認証をオンにしてください)

外部SMTPリレーを介して電子メールを送信するようにCentos 8システムを設定したいと思います。 (Centosボックスを制御して外部リレーを制御することはできません。)

postfixこれを行うように設定する方法に関する多数の投稿を読んでいますが、次のようにメールを送信してください。

echo "Test Mail" | mailx -r [email protected] -s "from centUser" [email protected]

リレーホストによって拒否されました:550-Please turn on SMTP Authentication in your mail client

/etc/postfix/sasl_passwdハッシュファイルを整理して作成しました。postmap /etc/postfix/sasl_passwd

どんな提案がありますか?投稿のすべてを試しましたが、何も得られませんでした。

postconf -n 出力

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
compatibility_level = 2
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 10
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
html_directory = no
inet_interfaces = localhost
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
meta_directory = /etc/postfix
mydestination = $myhostname, localhost.$mydomain, localhost
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix/README_FILES
relayhost = [mail.relayHost.com]:465
sample_directory = /usr/share/doc/postfix/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
shlib_directory = /usr/lib64/postfix
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
smtp_tls_CApath = /etc/pki/tls/certs
smtp_tls_security_level = encrypt
smtp_tls_wrappermode = yes
smtp_use_tls = yes
smtpd_tls_cert_file = /etc/pki/tls/certs/postfix.pem
smtpd_tls_key_file = /etc/pki/tls/private/postfix.key
smtpd_tls_security_level = may
unknown_local_recipient_reject_code = 550

/var/log/maillog 内容:

Mar 10 19:03:59 localhost postfix/pickup[51935]: C9C78A0ECC: uid=0 from=<[email protected]>
Mar 10 19:03:59 localhost postfix/cleanup[51953]: C9C78A0ECC: message-id=<6229db1f.6kZlW9/tSI+EKENo%[email protected]>
Mar 10 19:03:59 localhost postfix/qmgr[51936]: C9C78A0ECC: from=<[email protected]>, size=430, nrcpt=1 (queue active)
Mar 10 19:04:04 localhost postfix/smtp[51955]: C9C78A0ECC: to=<[email protected]>, relay=mail.relayHost.com[xxx.xxx.xxx.xxx]:465, delay=4.9, delays=0.09/0.04/1.6/3.2, dsn=5.0.0, status=bounced (host mail.relayHost.com[xxx.xxx.xxx.xxx] said: 550-Please turn on SMTP Authentication in your mail client, or login to the 550-IMAP/POP3 server before sending your message.  550-bc9deedb.xxx.ispdomain.com (centUser.localdomain) [yyy.yyy.yyy.yyy]:42686 550 is not permitted to relay through this server without authentication. (in reply to RCPT TO command))
Mar 10 19:04:04 localhost postfix/cleanup[51953]: D9BC8A0ECD: message-id=<[email protected]>
Mar 10 19:04:04 localhost postfix/qmgr[51936]: D9BC8A0ECD: from=<>, size=2982, nrcpt=1 (queue active)
Mar 10 19:04:04 localhost postfix/bounce[51958]: C9C78A0ECC: sender non-delivery notification: D9BC8A0ECD
Mar 10 19:04:04 localhost postfix/qmgr[51936]: C9C78A0ECC: removed
Mar 10 19:04:06 localhost postfix/smtp[51955]: D9BC8A0ECD: to=<[email protected]>, relay=mail.relayHost.com[xxx.xxx.xxx.xxx]:465, delay=1.6, delays=0.04/0/1.1/0.48, dsn=5.0.0, status=bounced (host mail.relayHost.com[xxx.xxx.xxx.xxx] said: 550-Please turn on SMTP Authentication in your mail client, or login to the 550-IMAP/POP3 server before sending your message.  550-bc9deedb.xxx.ispdomain.com (centUser.localdomain) [yyy.yyy.yyy.yyy]:42688 550 is not permitted to relay through this server without authentication. (in reply to RCPT TO command))
Mar 10 19:04:06 localhost postfix/qmgr[51936]: D9BC8A0ECD: removed

ベストアンサー1

RelayHost=[mail.relayHost.com]:465

リレーホストはTLSを介して送信されるポート465を使用するため、電子メールがこのサーバーを介して中継されるようにするには、必ず認証とTLSが必要です。

リソースセクションを参照してください。Postfix SMTP / LMTPクライアントでSASL認証を有効にする公式文書にここで見つけることができます

おすすめ記事