【问题标题】:NOQUEUE: reject: RCPT from localhost[::1]: 554 5.7.1 disconnect from localhostNOQUEUE:拒绝:来自 localhost[::1] 的 RCPT:554 5.7.1 与 localhost 断开连接
【发布时间】:2013-11-30 02:07:46
【问题描述】:

我正在尝试使用 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

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

我已从 main.cf 文件中删除了所有注释行。我是否必须配置任何其他文件才能从我的服务器发送邮件

【问题讨论】:

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

标签: smtp ruby-on-rails-4 postfix-mta


【解决方案1】:

*postconf -n** 请输出。

可能“mynetworks”参数不包括 IPv6 localhost (::1)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-03-05
    • 2010-12-21
    • 2018-10-17
    • 2021-02-20
    • 2023-02-05
    • 1970-01-01
    相关资源
    最近更新 更多