ガイドに従って [〜#〜] here [〜#〜] Postfixを設定します。 Telnet経由でメッセージを送信した後、次のエラーを受け取ります。
Oct 8 18:52:01 mail postfix/smtpd[3719]: connect from unknown[10.10.10.9]
Oct 8 18:52:01 mail postfix/smtpd[3719]: warning: smtpd_client_event_limit_exceptions: non-null Host address bits in "10.10.10.5/22", perhaps you should use "10.10.8.0/22" instead
Oct 8 18:52:02 mail postfix/smtpd[3719]: warning: mynetworks: non-null Host address bits in "10.10.10.5/22", perhaps you should use "10.10.8.0/22" instead
Oct 8 18:52:02 mail postfix/smtpd[3719]: NOQUEUE: reject: RCPT from unknown[10.10.10.9]: 451 4.3.0 <[email protected]>: Temporary lookup failure; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<UBUNTUSRV-16-ARCHIVEMATICA>
Oct 8 18:52:02 mail postfix/smtpd[3719]: warning: smtpd_client_event_limit_exceptions: non-null Host address bits in "10.10.10.5/22", perhaps you should use "10.10.8.0/22" instead
Oct 8 18:52:02 mail postfix/smtpd[3719]: lost connection after RSET from unknown[10.10.10.9]
Oct 8 18:52:02 mail postfix/smtpd[3719]: disconnect from unknown[10.10.10.9] ehlo=1 auth=1 mail=1 rcpt=0/1 rset=1 commands=4/5
Main.cfコンテンツに続く:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
smtpd_banner = $myhostname ESMTP
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
readme_directory = no
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
# fresh installs.
compatibility_level = 2
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mail.myDomain.com
mydomain = myDomain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#myorigin = /etc/mailname
myorigin = $mydomain
mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost
relayhost =
mynetworks = 127.0.0.0/8, 10.10.10.5/22
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
#inet_protocols = all
inet_protocols = ipv4
home_mailbox = Maildir/
# SMTP-Auth settings
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject
どんな助けでもありがたいです
ありがとうSimone
同じ問題に直面する人のために、私はこの良い記事を見つけました:
'mynetworks'パラメータの* 0/24を、smtpを使用しているホストへの参照として設定することにより、サブネットセグメント全体を有効にしました
ありがとうSimone
#grep -w mynetworks /etc/postfix/main.cf | grep -v "#"
mynetworks = 127.0.0.0/8, [::1]/128, 10.10.8.0/22
サブネットセグメント全体からの電子メールの送信を許可する必要がある場合は、10.10.10.5/22の値を10.10.8.0/22または10.10.10.0/24に変更します。サブネットXXX.XXX.125.0/24外の例、セグメント[:: 1]/128 listen-on-v6外
Postfixを再起動します。
service postfix restart