smtp 中继显示暂时查找失败

smtp 中继显示暂时查找失败

我们在 ubuntu 中部署了一个新的 smtp 中继服务器。当从 root 发送测试电子邮件时,邮件传输正常。但是当我们将其用作中继服务器时,它显示“临时查找失败”

我们应该在 postfix 中配置什么。需要一些帮助。这是我们的 postfix main.cf 文件

#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no
# 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
mydomain = efftelsolutions.net
myhostname = netexsmtp.efftelsolutions.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, smtp.solutions.net, localhost.solutions.net, , localhost
relayhost =
mynetworks = 127.0.0.0/8 88.82.175.33/27 88.82.175.225 88.82.175.65/27
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all

答案1

您在此部分有错误mynetworks,您需要指定正确的网络地址(范围的开始,而不是网关地址)

mynetworks = 127.0.0.0/8 88.82.175.32/27 88.82.175.225 88.82.175.64/27

相关内容