0

我正在编写一个使用 java 发送电子邮件的程序。我注意到,java 程序成功执行,但电子邮件没有到达预期的收件人。我使用 hMailServer 作为我的 SMTP 服务器。

服务器在端口 25 上运行。我已确认防火墙允许此端口。

我对 hMailServer 进行了诊断测试,得到了以下报告。

在此处输入图像描述

此外,我发现电子邮件在服务器中排队。

 Return-Path: <>
Message-ID: <C49CD35F-1204-4E7A-B520-18371344CC5C@localhost>
Date: Tue, 2 Aug 2011 16:50:04 +0530
From: mailer-daemon@localhost
 To: user2@test.com
Subject: Undeliverable: Hi
 Content-Transfer-Encoding: quoted-printable
  X-hMailServer-LoopCount: 1

Your message did not reach some or all of the intended recipients.

    Sent: Tue, 2 Aug 2011 16:50:01 +0530 (IST)
     Subject: Hi

     The following recipient(s) could not be reached:

      myname@gmail.com
      Error Type: SMTP
      Error Description: No mail servers appear to exists for the 
      recipients address.Additional information: Please check
      that you have not misspelled the recipients  email address.

可能是什么问题。你能帮忙解决这个问题吗?

4

1 回答 1

0

您正在使用test.com您希望您的域是本地的域。尝试类似的东西test.local

于 2014-04-25T14:16:18.563 回答