后缀错误 - 中继访问被拒绝

后缀错误 - 中继访问被拒绝

我的邮件服务器配置相当新。我正在尝试从客户端(JIRA)发送测试邮件,这是在不同的域中,主服务器在不同的域中,并且我要发送的电子邮件在不同的域中。当我将测试邮件发送到配置邮件服务器的域时,没有问题,但是当将其发送到外部域时,我收到此错误:

RELAY ACCESS DENIED

我尝试按照不同的论坛所述进行不同的参数更改,但未能成功。有人可以帮我吗?

请找到main.cf配置文件:

alias_database = hash:/etc/aliases  
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
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
disable_dns_lookups = yes
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname,<hostname>,<hostname.domainname>,localhost,<domain name where i want to send the email>
mydomain = <domainname>
myhostname = <hostname>
mynetworks = 127.0.0.0/8,99.999.99.999/25
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
unknown_local_recipient_reject_code = 550

答案1

您需要将发送服务器添加到relayhost,如下所示:

relayhost = 1.2.3.4

替换1.2.3.4为您的发送服务器的 IP。

然后检查并重新加载配置:

postconf check
postconf reload

然后再试一次。

相关内容