サフィックス:「リレーアクセスが拒否されました。」

サフィックス:「リレーアクセスが拒否されました。」

私はdovecot、postfix、opendkim、spamasassinを使ってメールサーバーを設定しようとしてきました。少しの難しさの最後に、受信メールが正しく機能するようにしました。 (私は電子メールでアカウントを登録しました!)しかし、電子メール転送は動作しません。新しいメールから古いProtonmailアカウントに送信してテストしましたが、エラーが発生しました。同様に、以前のメールから新しいメールまでの受信メールにも機能します。 Neomuttを使用したメール転送コマンドとしてmsmtpを使用して転送をテストします。

relayhost私のドメインのポート587に接続されているポートがあります。これは私のISPが太っていて、何らかの理由でポート25をブロックしているからです。とにかく、電子メールを送信したときに受信したログメッセージは次のとおりです。

postfix/submission/smtpd[57255]: NOQUEUE: reject: RCPT from unknown[192.168.86.1]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail.doma.in>
postfix/smtp[57263]: E45589003B2: to=<[email protected]>, relay=MY.IP[MY.IP]:587, delay=0.2, delays=0.14/0.02/0.02/0.02, dsn=4.7.1, status=deferred (host MY.IP[MY.IP] said: 454 4.7.1 <[email protected]>: Relay access denied (in reply to RCPT TO command))
postfix/submission/smtpd[57255]: disconnect from unknown[192.168.86.1] ehlo=2 starttls=1 mail=1 rcpt=0/1 data=0/1 rset=1 quit=1 commands=6/8

postconf -n:

alias_database = $alias_maps
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/bin
compatibility_level = 3.6
daemon_directory = /usr/lib/postfix/bin
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
home_mailbox = Mail/Inbox/
html_directory = no
inet_protocols = ipv4
mail_owner = postfix
mailbox_command = /usr/lib/dovecot/deliver
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
meta_directory = /etc/postfix
milter_default_action = accept
milter_protocol = 6
mydestination = $myhostname, $mydomain, localhost, localhost.localdomain, 127.0.0.1, MY.IP
mydomain = doma.in
myhostname = mail.doma.in
mynetworks = , 127.0.0.0/8 [::1]/128 MY.IP/32 MY.PRIVATE.IP MY.IP
newaliases_path = /usr/bin/newaliases
non_smtpd_milters = inet:127.0.0.1:12301
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix
relay_domains = $mydestination
relayhost = [MY.IP]:587
sample_directory = /etc/postfix
sendmail_path = /usr/bin/sendmail
setgid_group = postdrop
shlib_directory = /usr/lib/postfix
smtp_tls_CAfile = /etc/letsencrypt/live/doma.in/cert.pem
smtp_tls_loglevel = 3
smtp_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtp_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtp_tls_security_level = may
smtpd_milters = inet:127.0.0.1:12301
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options =
smtpd_sasl_tls_security_options =
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/letsencrypt/live/doma.in/fullchain.pem
smtpd_tls_exclude_ciphers = aNULL, LOW, EXP, MEDIUM, ADH, AECDH, MD5, DSS, ECDSA, CAMELLIA128, 3DES, CAMELLIA256, RSA+AES, eNULL
smtpd_tls_key_file = /etc/letsencrypt/live/doma.in/privkey.pem
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtpd_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtpd_tls_security_level = may
tls_preempt_cipherlist = yes
unknown_local_recipient_reject_code = 550

ポート587でリッスンしています。

# lsof -i -P -n|grep 587
...
master    57239      root   94u  IPv4 970320      0t0  TCP *:587 (LISTEN)
smtpd     57364   postfix    6u  IPv4 970320      0t0  TCP *:587 (LISTEN)
smtpd     57367   postfix    6u  IPv4 970320      0t0  TCP *:587 (LISTEN)
smtpd     57371   postfix    6u  IPv4 970320      0t0  TCP *:587 (LISTEN)
smtpd     57374   postfix    6u  IPv4 970320      0t0  TCP *:587 (LISTEN)

このエラーが発生するのはなぜですか?私は特に、次のようないくつかの異なる質問に対処しました。

しかし、これらのどれも役に立ちません

ベストアンサー1

最後に、192.168.86.0/24もう一つmynetworksの質問がありますが、これについて新しい質問をさせていただきます。

おすすめ記事