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