Ruby on rails 什么是诊断代码:SMTP;573是什么意思?

Ruby on rails 什么是诊断代码:SMTP;573是什么意思?,ruby-on-rails,smtp,sendmail,Ruby On Rails,Smtp,Sendmail,我正在使用sendmail从Rails应用程序发送邮件。但是,在向特定用户域发送邮件时似乎发生了错误。/var/mail/***中的错误如下: Date: Tue, 11 Oct 2011 16:33:46 GMT From: Mail Delivery Subsystem <MAILER-DAEMON@*****> Message-Id: <201110111633.p9BGXkpR010310@******> To: <****@*****> MIME-V

我正在使用sendmail从Rails应用程序发送邮件。但是,在向特定用户域发送邮件时似乎发生了错误。
/var/mail/***
中的错误如下:

Date: Tue, 11 Oct 2011 16:33:46 GMT
From: Mail Delivery Subsystem <MAILER-DAEMON@*****>
Message-Id: <201110111633.p9BGXkpR010310@******>
To: <****@*****>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
        boundary="p9BGXkpR010310.1318350826/******"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
This is a MIME-encapsulated message

--p9BGXkpR010310.1318350826/*******

The original message was received at Tue, 11 Oct 2011 16:33:42 GMT
from localhost [127.0.0.1]

   ----- The following addresses had permanent fatal errors -----
<****@{domain}.com>
    (reason: 573 ********@****** failed to route the address)
<*****@{domain}.com>
    (reason: 573 *******@****** failed to route the address)
<*****@{domain}.com>
    (reason: 573 *******@******* failed to route the address)

   ----- Transcript of session follows -----
... while talking to *********.com.1.0001.arsmtp.com.:
>>> MAIL From:<*******@*******> SIZE=1273
<<< 573 ********@********* failed to route the address
554 5.0.0 Service unavailable

--p9BGXkpR010310.1318350826/*******
Content-Type: message/delivery-status

Reporting-MTA: dns; StreetSense
Received-From-MTA: DNS; localhost
Arrival-Date: Tue, 11 Oct 2011 16:33:42 GMT

Final-Recipient: RFC822; ****@*******.com
Action: failed
Status: 5.0.0
Diagnostic-Code: SMTP; 573 *******@******* failed to route the address
Last-Attempt-Date: Tue, 11 Oct 2011 16:33:46 GMT

Final-Recipient: RFC822; *******@********.com
Action: failed
Status: 5.0.0
Diagnostic-Code: SMTP; 573 *******@******** failed to route the address
Last-Attempt-Date: Tue, 11 Oct 2011 16:33:46 GMT

Final-Recipient: RFC822; ******@*********.com
Action: failed
Status: 5.0.0
Diagnostic-Code: SMTP; 573 *****@******** failed to route the address
Last-Attempt-Date: Tue, 11 Oct 2011 16:33:46 GMT
ping似乎也在工作:

# ping xxxxxxx.com
PING xxxxxxxx.com (xxx.xx.xx.xx) xx(xx) bytes of data.
64 bytes from linux06.ntiva.com (xxx.xx.xx.xx): icmp_seq=1 ttl=53 time=29.0 ms
64 bytes from linux06.ntiva.com (xxx.xx.xx.xx): icmp_seq=2 ttl=53 time=27.4 ms
64 bytes from linux06.ntiva.com (xxx.xx.xx.xx): icmp_seq=3 ttl=53 time=27.4 ms
64 bytes from linux06.ntiva.com (xxx.xx.xx.xx): icmp_seq=4 ttl=53 time=27.4 ms
编辑

另外,我服务器的主机名似乎与引起问题的域名相同

# hostname
xxxxxxx

这与域
xxxxxxx.com
相同。这会导致问题吗?

路由地址失败
是这里的关键

您的
sendmail
似乎不知道如何路由该地址。你需要在这里进行邮件调试。第一步可能是检查DNS中此域的MX记录-
dig example.com MX


如果没有MX记录,这就是问题所在。如果存在MX记录,您可以尝试ping该主机。

我最终使用gmail SMTP发送邮件。无法解决这个问题。
# hostname
xxxxxxx