postfixでsmtp_relay_restrictionsをどのように処理するのですか?

postfixでsmtp_relay_restrictionsをどのように処理するのですか?

ちょうどpostfixとdovecotを使ってメールサーバーを設定していましたevolution

たとえば、に電子メールを送信すると、[email protected]次のエラーが発生します。

NOQUEUE: reject: RCPT from unknown[MY_IP_ADDRESS]: 450 4.3.2 <[email protected]>: 
Recipient address rejected: Try again later; from=<contact@XX> 
to=<[email protected]> proto=ESMTP helo=<[IP_ADDRESS]>

Googleで試してみましたが、問題はこんな感じです。

smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

ここに現在のIPアドレスを追加するとmynetworks機能します。しかし、別の場所で使用するとどうなりますか?だからどこでも動作するにはこれが必要です。

smtpd_relay_restrictionsその後、nullに設定しようとしましたが、文句を言いsmtpdました。

 postfix/smtpd[16217]: fatal: in parameter smtpd_relay_restrictions or 
 smtpd_recipient_restrictions, specify at least one working instance of: 
 reject_unauth_destination, defer_unauth_destination, reject, defer, defer_if_permit or check_relay_domains

今何をすべきかわかりませ0.0.0.0/0mynetworks。 (スパムサーバーになることができますか?)

PS 私はUbuntu 14.04でpostfix 2.11を実行しています。

ポスト構成 -n

#
# I replaced the ip address of my VPS to "VPS_IP"
# MYDOMAIN.com for my email domain
# 

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
mailbox_size_limit = 0
mydestination = MYDOMAIN.com, localhost.vpsserver.com, localhost
myhostname = MYDOMAIN.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 VPS_IP
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP
smtpd_recipient_restrictions = permit_sasl_authenticated
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = hash:/etc/postfix/virtual

ベストアンサー1

おすすめ記事