Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Smtp NOQUEUE:reject:RCPT from localhost[::1]:554 5.7.1断开与localhost的连接_Smtp_Ruby On Rails 4_Postfix Mta - Fatal编程技术网

Smtp NOQUEUE:reject:RCPT from localhost[::1]:554 5.7.1断开与localhost的连接

Smtp NOQUEUE:reject:RCPT from localhost[::1]:554 5.7.1断开与localhost的连接,smtp,ruby-on-rails-4,postfix-mta,Smtp,Ruby On Rails 4,Postfix Mta,我正在尝试使用postfix和rails从centos发送邮件,但我收到的错误如下: Nov 16 18:14:15 li664-186 postfix/smtpd[5477]: connect from localhost[::1] Nov 16 18:14:15 li664-186 postfix/smtpd[5477]: NOQUEUE: reject: RCPT from localhost[::1]: 554 5.7.1 <test@gmail.com>: Relay ac

我正在尝试使用postfix和rails从centos发送邮件,但我收到的错误如下:

Nov 16 18:14:15 li664-186 postfix/smtpd[5477]: connect from localhost[::1]
Nov 16 18:14:15 li664-186 postfix/smtpd[5477]: NOQUEUE: reject: RCPT from localhost[::1]: 554 5.7.1 <test@gmail.com>: Relay access denied; from=<admin@my-domain.com> to=<test@gmail.com> proto=ESMTP helo=<localhost.localdomain>
Nov 16 18:14:15 li664-186 postfix/smtpd[5477]: disconnect from localhost[::1]
我已经从main.cf文件中删除了所有注释行。是否必须配置任何其他文件才能从我的服务器发送邮件** 请输出


mynetworks参数可能不包括IPv6 localhost::1

而不是手动编辑main.cf内容,请发布postconf-n的输出,以显示Postfix看到的实际设置。@设置时让我知道mynetwok条目?
queue_directory = /var/spool/postfix

command_directory = /usr/sbin

daemon_directory = /usr/libexec/postfix

data_directory = /var/lib/postfix

mail_owner = postfix

myhostname = host.my-domain.com
#myhostname = virtual.domain.tld

#mydomain = domain.tld
mydomain = my-domain.com

#myorigin = $myhostname
myorigin = $mydomain

inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
inet_interfaces = localhost

# Enable IPv4, and IPv6 if supported
inet_protocols = all

#proxy_interfaces =
#proxy_interfaces = 1.2.3.4


newaliases_path = /usr/bin/newaliases.postfix

mailq_path = /usr/bin/mailq.postfix

setgid_group = postdrop

html_directory = no

manpage_directory = /usr/share/man

sample_directory = /usr/share/doc/postfix-2.6.6/samples

readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES