配置hmailServer时出现问题

时间:2011-08-02 12:59:57

标签: java smtp hmail-server

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

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

我在hMailServer上运行了一个诊断测试,得到了以下报告。

enter image description here

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

 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.

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

1 个答案:

答案 0 :(得分:0)

您正在使用您希望自己的域名为本地的域test.com。尝试类似test.local

的内容