More than a year, I downloaded the latest version of James from Apache last week, I found that the James configuration guide written a year was applicable as the new version of James, huh, I miss the era of Java development, I miss James, below It is a full-text JAMES 2.1.3 Getting Started Configuration Guide James is a pure Java's mail server, and it is open source. There are currently a lot of related configuration guides, but 2.1.3 has changed than previous versions. After a day During the exploration, I have gone. James comes with the documentation. The document is very simple. Many places have been brought, and the light reverses that many problems cannot be solved because James is also Apache's sub-project, so his installation is also Just directly decompression, you can use it. If you decompressed to D: / James, you have a james.sar file in the D: / james / apps directory, and click the right click on this file to extract with WinRAR. Be careful not to modify the default decompression path and then enter D: /james-2.1.3/APPS/James/SAR-INF, the config.xml inside is the core configuration file of James.
First change the server name, the default is localhost, let others can use the server on your machine, you must change, my machine name is MRP-CZ
There are also some POP3 and SMTP port settings, usually do not change, you can use the default value.
The following is mainly to say, if you want to connect the James with the data library so that it is closely combined with your project, it is too simple to say in James, you can refer to the description of the documentation of the repositories James James data storage method There are three types: file, db, dbfile file is to store DB in file mode. Of course, the database dbfile I personally doesn't use it. It is stored in a message header database, and stores the message product.
Just say pull, take file storage, D: /james-2.1.3/apps/james/var/mail is the stored letters content SPOOL is the message being processed, and INBOX is stored Mail, the database is also the same
D: /james-2.1.3/apps/james/conf/sqlresources.xml is the SQL description file, which supports most mainstream databases, if you use the database, there is no, you will increase
Ok, start configuring
Then spool, find
Then User, the default is removed, change to
Ok, the configuration is complete, start James, if everything goes well, there will be more than 5 tables below you, the specific details are not more, and you study it. James is controlled by remote control means Run Telnet MRP- CZ (replace with your machine name) 4555 Default login name and password are root If you want to change, you can change the
In addition, James will first store the message in the spool for processing, so sometimes the mail is not very normal, wait for a while.