Setup an Email server
1. Download the James from Apache http://james.apache.org/
2. Unpack it, and go into the bin folder such as Q:/james-2.2.0/bin and "run"
3. At this point, you should not get any error, and then try "Ctrl +C" to stop it.
4. Open */apps/james/SAR-INF/config.xml make some change.
5. First change the "remoteManager" to have a new adminstrator user and password;
6. Run the James again and run telnet to connect and add a new user (For some bugs I think, after adding a new user with its password, you have to "setpassword" to a new password for the user. Or the user can be authorized correctly);
7. Modify the "pop3server" and "smtpserver" to your domain name, and other related attributes; be sure some points is commented correctly, for example:
<!--
<mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
<processor> relay-denied </processor>
<notice>550 - Requested action not taken: relaying denied</notice>
</mailet>
-->
because the initial config.xml is for a localhost mail server, such local ip(127.0.0.1) will block you from sending mail out.
8. Add an MX record to you DNS server, you can read more about MX record from your DNS provider;
9. Try to run James again and sending messages to other mail server;
10. Make further configuration change ...
Related link: http://www.whizzideas.com/whizznotes/xhtml/1962.html
本文介绍了搭建邮件服务器的步骤。先从Apache下载James并解压运行,停止后修改配置文件,设置新管理员用户和密码,添加新用户,修改pop3和smtp服务器的域名及相关属性,添加MX记录到DNS服务器,最后再次运行并测试发送邮件。

1236

被折叠的 条评论
为什么被折叠?



