A simple guide to the installation and use of James

Source: Internet
Author: User
Tags add config end mail version variable mail exchange
James (Java Apache Mail Enterprise Server) is a subproject of the Apache Jakarta Project that uses 100% of pure Java technology to implement the current popular open protocols such as POP3,SMTP, NNTP, and so on) a complete enterprise mail engine, and it is easy to plug in a wide range of accessibility functions via the Mailet API. As a mail application platform, you can also develop your own messaging capabilities based on it. However, no company has yet used James to provide mail service reports and has no detailed test data for its messaging capabilities, but it integrates newsgroup servers and mail servers with simple mailing list features, as well as TLS (SSL) and SMTP authentication. You can use it for the enterprise internal mail exchange and information Exchange Server is very good. The latest stable version of James is 2.0A3, and you can download its latest compiled version in http://jakarta.apache.org/site/binindex.html.

Get your James to run.

The whole James installation process is very simple, but you first need to have a version of 1.3 or more JRE or JDK, otherwise James V2.0A3 will not work correctly. If you already have this winter in your machine, get the downloaded JAMES-2.0A3 compression pack to your desired installation directory (we'll call it james_home later), such as C:james (m$ user) or/james (*nix) user.

Then set the JAVA_HOME environment variable, and if you're sure you've set up the environment variable in your system, skip to the next section, or you'll need to find the directory where you installed the JRE or JDK, and then add a line like set Java_ to the beginning of your run.bat. home=c:jdk1.4 (m$ user) or add the following two lines at the beginning of your run.sh file and save (*nix user).

java_home=/usr/jdk1.4
Export Java_home



m$ users can run the Run.bat directly, this time everything is the default configuration of the run, and so you know the server after you can use the Run.bat--help command to get more control options to better use it, now we still start from scratch. Use CTRL + C directly to end the run (strange it doesn't actually provide a shutdown script), and then in the James_homeapps directory, You will find that James.sar has been unpacked into the current directory, and then entered a layer of James Directory, will find a conf directory, hey, we need the advanced customization on it. General play *nix are old birds, the basic operation does not correspond to the introduction, prompted, the first time you in order to facilitate the middle end of the operation of James directly james_home/bin/ Run.sh can be, pay attention to use the Super User Oh, otherwise can not open 1024 of the following port, later can use james_home/bin/run.sh & to run in the background, the words to do so, we go to the next step.

Mail server Basic Configuration

Enter james_homeappsjamesconf and edit Config.xml. The comments for this configuration file are very detailed, and we first change the basic security Configuration-remote management configuration. Find the tag, focus on the port (default 4555) and administrator_accounts (the default username and password are root), so you can avoid being easily logged in to control, and then Telnet jameshostname 4555 (If you have modified, telnet to the corresponding port of the host of James), enter your new Administrator's username and password, enter the remote control, where you can add a mailbox account, you can set the password, you can also close the James Server, A help command allows you to get a list of helpers. Of course, you can also cancel the annotation at the label so that you can support SMTP authentication.

Newsgroup server Basic configuration

The same Config.xml file is where the newsgroup server is set up, and the newsgroup settings, in addition to setting whether or not the authentication (label) is required to participate in newsgroup discussions, mainly set up the newsgroup categories, add any categories you want to add under the-> tab, restart the server, You'll be able to see the new newsgroups grouped through the newsgroup client.

Mailing List Basic Configuration

James's mailing list feature is just a simple collection of features, including subscriptions, unsubscribe, and most basic mailing list features, but it's still enough for a small team. This only provides a way to demonstrate a simple mailing list of native configurations.

First, under the label of the Config.xml file, there is a label, in front of the block, add the following paragraph:


class= "Avalonlistservmanager" >
List-james


class= "Avalonlistserv" >
False
True
True
List-james
Jameslist



Restart James and send an e-mail to james-on@localhost with a local account (such as Lanf@localhost), and you will receive a new letter from Postmaster@localhost, "successfully Added to ListServ. "Indicates that you have successfully subscribed to the mailing list. The way to unsubscribe is to send a message to James-off@localhost.

Outside of this article

In this simple guide, we did not introduce further development based on the Mail platform of James, nor how to use databases and LDAP to save users of mail and mail servers, and how to combine James with SendMail, simply introducing its basic use, So that you have an overview of the open source project.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.