碰巧用到了James向外网邮箱发信的需求,测试使用正常,记录下~

1:需要能上网

2:修改 ${JAMES_ROOT}\conf\dnsservice.xml配置如下

image

修改 {JAMES_ROOT}\conf\mailetcontainer.xml 将这段注释

1
2
3
4
5
6
<!--
<mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
<processor>relay-denied</processor>
<notice>550 - Requested action not taken: relaying denied</notice>
</mailet>
-->

smtp协议认证范围修改 {JAMES_ROOT}\conf\smtpserver.xml

1
  <authorizedAddresses>*</authorizedAddresses>

参考博客园