论坛首页 Java企业应用论坛

用 Apache James 搭建邮件服务器来收发邮件实践(一)

浏览 65588 次
精华帖 (3) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2008-08-31  
Wallian_hua,你的163,126邮箱是新注册或者注册不久的,你换个时间长一点的163,126的邮箱试试。我们在做JMail发送邮件的测试中也发现了这个问题,我的博客关于JMail发送邮件的讨论中有提到这个问题。放心,这个不是James的问题。问题是不是网易对新注册的邮箱在“一段”时间内做了安全限制,这个具体我们也没有去深究调查。
0 请登录后投票
   发表时间:2008-09-01  
按照你的配置文件修改方法,对外发邮件没有报错,但sina.com还是收不到邮件。
0 请登录后投票
   发表时间:2008-09-01  
按照你的配置方式,我的返回如下错误,不知如何解决
Hi. This is the James mail server at good.
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):
dengjidou@sina.com

Error message:
550 #5.7.1 Your access to submit messages to this e-mail system has been rejected.
0 请登录后投票
   发表时间:2008-09-01  
haiter,网易和新浪的邮箱都是可以发的,新浪的邮箱可能没有网易的邮箱那么快收到,这些我都是做个测试的。我特地又做了一遍测试。另外,我向你的dengjidou@sina.com 邮箱发了一封邮件,希望你能收到^_^

另外根据报错,是sina邮箱拒绝了你的邮件。你再研究一下是哪里出了问题。希望你有了结果能来这跟大家讲讲你的发现。谢谢!
0 请登录后投票
   发表时间:2008-09-02  
zhai puhong :
我测试了一下可以向dengjidou@163.com发,可以成功收到,
但向sina.com发收不到,报"530 5.7.1 Authentication Required"
你发的邮件我没有收到
0 请登录后投票
   发表时间:2008-09-02  
我修改了配置文件如下,请大家一起来讨论一下
<helloName autodetect="true">51newlife.com</helloName>
<defaultDomain>51newlife.com</defaultDomain>

<servernames autodetect="false" autodetectIP="true">
         <servername>51newlife.com</servername>
</servernames>
<!--<mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
            <processor> relay-denied </processor>
            <notice>550 - Requested action not taken: relaying denied</notice>
         </mailet>
          -->

<authRequired>true</authRequired>
0 请登录后投票
   发表时间:2008-09-02  
毕竟你只是一个未注册的域名,当初都是测试通过了的,昨天我给自己新浪发的也没收到。不知道新浪的安全机制或者反垃圾邮件这么强。有待进一步证实!
0 请登录后投票
   发表时间:2008-09-02  
这么快看到了你的回复!
报"530 5.7.1 Authentication Required" ,是因为
没有 props.put("mail.smtp.auth", "true");
现在sina就是收不到,其他邮件可以收到,
我的www.51newlife.com是真实注册的域名
我打算用版本3.0试试看
0 请登录后投票
   发表时间:2008-09-02  
新浪总是报如下错误:
Hi. This is the James mail server at good.
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):
dengjidou@sina.com

Error message:
550 #5.7.1 Your access to submit messages to this e-mail system has been rejected.
0 请登录后投票
   发表时间:2008-09-02  
// 添加smtp服务器属性
props.put("mail.smtp.host", host);
props.put("mail.smtp.auth", "true");


这两行我都有啊,老兄!
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics