纪录一下apache james服务器被当做中继服务器发送垃圾邮件的解决方案;
根据官网的描述,需要打开
<mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
<processor>spam</processor>
</mailet>
这一段配置在 mailetcontainer.xml中,系统默认给了一个模板mailetcontainer-template.xml,修改为mailetcontainer.xml即可。
另外需要把目前系统中的垃圾邮件删掉,目录在
james-server-app/var