Problem in sending external mails in James Mail Server

*爱你&永不变心* 提交于 2019-12-07 12:12:47

问题


I am new to James Mail Server. I configured as the steps mentioned by James. I can send send mails to internal network, but I am not able to send mails to external network like gmail.

Somebody please help me to resolve the issue

Thanks in advance

Rohith


回答1:


Sorry for the late but it may help some people in the future.

If you want configure JAMES to send mails to external network you must edit the file conf.xml in the ${JAMES_DIR}/apps/james/SAR-INF.

Uncommented these line to define an SMTP relay server if necessary through the gateway:

<processor name="transport">
  <mailet match="All" class="RemoteDelivery">
    ...
    <gateway> smtp.gmail.com </gateway>
    <gatewayPort>25</gatewayPort>
  </mailet>
</processor>

Example to use the gmail relay server:

  • POP Server: pop.gmail.com (on activation of the POP option of GMail)
  • SMTP Server: smtp.gmail.com
  • IMAP Server: imap.gmail.com

EDIT: gmail requires an authentication so you must set the gatewayusername and the gatewayPassword markups:

<gatewayusername>login</gatewayusername>
<gatewayPassword>pass</gatewayPassword>

See http://mail.google.com/support/bin/answer.py?answer=10350



来源:https://stackoverflow.com/questions/1872287/problem-in-sending-external-mails-in-james-mail-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!