詹姆斯不向外国服务器发送电子邮件

James not sending emails to foreign server

社区
我已经在我的机器上安装了 James。我配置了它。我在 4555 端口上做了一个 telnet 并添加了几个用户。然后我在 25 端口上做了一个 telnet,然后我向外部电子邮件地址发送了一封邮件

ehlo leo@localhost
...
mail from: <leo@localhost>
250 2.1.0 Sender <leo@localhost> OK
rcpt to: <lroura@uci.cu>
250 2.1.5 Recipient <lroura@uci.cu> OK
data
354 Ok Send data ending with <CRLF>.<CRLF>
subject: otr prueba
jejejejje
.
250 2.6.0 Message received

在 leo 收件箱中出现这样的消息

Return-Path: <>
Delivered-To: leo@localhost
Date: Wed, 21 Oct 2015 14:04:29 -0500 (GMT-05:00)
From: postmaster@localhost
To: leo@localhost
Message-ID: <33108879.3.1445454269196.JavaMail.root@mypc>
In-Reply-To: <23978087.1.1445454269122.JavaMail.root@mypc>
Subject: Re:otr prueba
MIME-Version: 1.0
Content-Type: multipart/report;
    boundary="----=_Part_2_22845834.1445454269146";
    report-type=delivery-status

------=_Part_2_22845834.1445454269146
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi. This is the James mail server at mypc.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.  Below
I include the list of recipients and the reason why I was unable to deliver
your message.

Failed recipient(s):
lroura@uci.cu

Error message:
554 5.7.1 <unknown[10.31.105.115]>: Client host rejected: Access denied


------=_Part_2_22845834.1445454269146
Content-Type: message/delivery-status; name=status.dat
Content-Transfer-Encoding: 7bit
Content-Description: Delivery Status Notification
Content-Disposition: attachment; filename=status.dat

Reporting-MTA: dns; mypc
Received-From-MTA: dns; localhost

Final-Recipient: rfc822; lroura@uci.cu
Action: failed
Status: 5.7.1
Diagnostic-Code: smtp; 554 5.7.1 <unknown[10.31.105.115]>: Client host rejected: Access denied
Last-Attempt-Date: Wed, 21 Oct 2015 14:03:58 -0500 (GMT-05:00)

------=_Part_2_22845834.1445454269146
Content-Type: message/rfc822; name="otr prueba"
Content-Disposition: Attachment; filename="otr prueba"

Message-ID: <23978087.1.1445454269122.JavaMail.root@mypc>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Received: from localhost ([127.0.0.1])
          by mypc (JAMES SMTP Server 2.3.2) with SMTP ID 269
          for <lroura@uci.cu>;
          Wed, 21 Oct 2015 14:03:58 -0500 (GMT-05:00)
Date: Wed, 21 Oct 2015 14:03:58 -0500 (GMT-05:00)
From: leo@localhost
subject: otr prueba
jejejejje



------=_Part_2_22845834.1445454269146--

如何使用 James 向外部服务器发送电子邮件?

@Leandro Roura Sixto:嗨。基本上,当接收方将您的机器识别为垃圾邮件来源或中继主机时,就会抛出 SMTP 错误代码 554。这通常是由 leo 的域引起的,即 localhost。添加一些有意义的主机,如gmail或yahoo,您将能够通过收件人邮件服务器/ SMTP的垃圾邮件过滤器。