配置Apache James郵件服務(wù)器
Apache James是最好用的開源java郵件服務(wù)器之一,在配置smtp服務(wù)過程中,有些步驟不對(duì)的話郵件就發(fā)送不出去。
0.打開james-2.2.0\apps\james\SAR-INF\config.xml文件
1.transport
注釋掉
<!--mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
<processor> relay-denied </processor>
<notice>550 - Requested action not taken: relaying denied</notice>
</mailet-->
使用smtp認(rèn)證方式
2.dnsserver
輸入服務(wù)器的DNS IP,例如:
<server>202.96.134.133</server>
<server>202.96.128.110</server>
<server>202.96.128.68</server>
設(shè)置autodiscover為false
如果設(shè)置為自動(dòng)探測(cè)的話,在我的機(jī)器上會(huì)報(bào)錯(cuò):
James.Mailet: RemoteDelivery: Temporary exception delivering mail (Mail1098776398187-0-to-somedomain.com: javax.mail.MessagingException: There are no DNS entries for the hostname somedomain.com. I cannot determine where to send this message.
at org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:398)
at org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:912)
at java.lang.Thread.run(Thread.java:534)
3.修改root口令。account login="root" password="mypassword"
4.smtpserver
打開smtp認(rèn)證
<authRequired>true</authRequired>
5.重新啟動(dòng)James
6.telnet server-name 4555,增加用戶
7.就可以用outlook等發(fā)送郵件了。
關(guān)鍵詞:Apache,James,郵件服務(wù)器
閱讀本文后您有什么感想? 已有 人給出評(píng)價(jià)!
- 2
- 2
- 2
- 4
- 4
- 2