554 5.7.1:中继访问被拒绝的centos后缀

前端之家收集整理的这篇文章主要介绍了554 5.7.1:中继访问被拒绝的centos后缀前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在centos中从postfix发送邮件时遇到问题

我有setup mail server postfix发送邮件,但我收到错误.

链接中我尝试了以下命令

telnet localhost smtp

Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 mydomain.com ESMTP Postfix
ehlo localhost
250-mydomain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:<domain.com>
250 2.1.0 Ok
rcpt to:<test@gmail.com>
554 5.7.1 <test@gmail.com>: Relay access denied

编辑-1

在终端这工作

echo TEST | mail -v -s "Test mail" testing@gmail.com

我的postconf -n显示了belog信息

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
home_mailBox = Maildir/
html_directory = no
inet_interfaces = localhost
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname,localhost.$mydomain,localhost,$mydomain
mydomain = dummy.com
myhostname = dummy.com
mynetworks = all
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

我必须执行哪些配置才能从我的服务器发送邮件.

基于 Postfix documentation,设置mynetworks = all似乎无效,如果您专门设置mynetworks,则忽略mynetworks_style.

如果要使用mynetworks_style = host,请将mynetworks重置为其默认值,或者显式设置mynetworks以反映从哪里发送邮件(通常是localhost和本地子网).例如:

mynetworks = 127.0.0.0/8 192.168.1.0/24
mynetworks_style = subnet

猜你在找的CentOS相关文章