Re-trial James

xiaoxiao2021-03-06  80

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 Postmaster @ localhost change to Postmaster @ MRP-CZ localhost Change to 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 in config.xml first, the default is no actual content, only two masked examples I use MS SQL, so take the example of MSSQL It's used, below is my profile, almost whose com.microsoft.jdbc.sqlserver. SQLServerDriver JDBC: Microsoft: SQLServer: // mit-devserver: 1433; DatabaseName = James sa 1 20 < / max> name is the identifier of the connection, after which it is set up, it is used by the mail storage setting. Find item default is shielded, there is an example below it , activate it

Then spool, find to activate the default shielded

Then User, the default is removed, change to file: / /conf/sqlresources.xml

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 item inside config.xml, everything is a dark box, you can't see any commands you entered. Only after the carriage return will only be known, people are free and paid services, will be used, you can exercise the accuracy of your fingers, you can know the list of commands, this don't say Outlook settings with the general settings. The difference is that when setting the POP3 and SMTP server addresses, enter the server machine name directly.

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.

转载请注明原文地址:https://www.9cbs.com/read-92204.html

New Post(0)