配置(zhì)Apache James郵件(jiàn)服務器
Apache James是最好用的(de)開源(yuán)java郵件服務(wù)器之一,在配置smtp服務(wù)過程中,有(yǒu)些(xiē)步驟不對的話(huà)郵件就發送不出(chū)去(qù)。
0.打開james-2.2.0\apps\james\SAR-INF\config.xml文件
1.transport
注釋(shì)掉
<!--mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
<processor> relay-denied </processor>
<notice>550 - Requested action not taken: relaying denied</notice>
</mailet-->
使(shǐ)用smtp認證方式
2.dnsserver
輸入服務器的DNS IP,例如(rú):
<server>202.96.134.133</server>
<server>202.96.128.110</server>
<server>202.96.128.68</server>
設(shè)置autodiscover為false
如果設置為自動探測(cè)的話,在我(wǒ)的機器上會報錯(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.修改(gǎi)root口令(lìng)。account login="root" password="mypassword"
4.smtpserver
打(dǎ)開smtp認證
<authRequired>true</authRequired>
5.重新(xīn)啟動James
6.telnet server-name 4555,增加用戶
7.就可以(yǐ)用outlook等發送郵件(jiàn)了。
關鍵詞:Apache,James,郵件服務器
閱讀本文後您(nín)有(yǒu)什麽感想(xiǎng)? 已有 人給出評價!
- 2
- 2
- 2
- 4
- 4
- 2