Apache James Getting Started

xiaoxiao2021-03-06  37

Apache James Getting Started Author: Chen Source: www.zdnet.com.cn Visits: times Joined: 2004-12-14

I. Introduction Apache James (Java Apache Mail Enterprise Server) is one of the subcommets of the Apache organization, fully adopts pure Java technology, implements multiple mail-related protocols such as SMTP, POP3 and NNTP. James is also an email application platform that can be extended through the MAILET, such as Mail2Sms, Mail2fax, etc. James provides a relatively complete configuration scheme, especially for mail content storage and user information storage portions, can be saved in files, databases, or other media. JAMES is stable, configurable, or open source project, all source code does not have copyright issues, so the application in the project is increasingly wide, and now the common version is 2.3, but the latest version 2.3 has been launched, in this article, we It will still be used as James2.1 as a introduction blue. Second, the installation and configuration of the JAMES is very simple. Step 1: Install JDK Please use JDK1.3 or higher (recommended using JDK1.4), assume that it is installed in C: /JDK1.3. Step 2: Download James, and extract to download James2.1 on the Apache website, download will get a compressed file james-2.1.zip, size is 4.45m, and extract this package to C: / James. Step 3: When you run or need to configure java_home, you can try to double-click C: /JAMES/bin/run.bat directly. If you start correct, you will be prompted as follows:

Using PHOENIX_HOME: C: / jamesUsing PHOENIX_TMPDIR: C: / james / tempUsing JAVA_HOME: Phoenix 4.0.1 James 2.1Remote Manager Service started plain: 4555POP3 Service started plain: 110SMTP Service started plain: 25NNTP Service DisabledFetch POP Disabled there may not start, and The newspaper Java_Home can't find it. At this time, you need to specify java_home. The relatively simple method is to specify java_home in c: /james/bin/run.bat, and the modified run.bat is as follows:

... Remrem determine if java_home is set and if so use itremset java_home = c: /jdk1.3if Not "% java_home%" == "" goto found_java ... After the modification, run run.bat, you should start normally If there is any problem, please refer to the FAQ section of this article. Third, the project application 1, the project demand one unit, there are 16 functional office, a total of 78 computers (operating system is WIN98 / 2000 / XP), one of which is a dedicated server (Win2000), which has been connected to a local area network. In order to exchange information within the unit, especially file interaction is more convenient, and units determine a set of E-mail systems inside the local area network. 2, the solution installs JAMES2.1 on a private server, and the client uses the Outlook Express that comes with the operating system. 3. The server-side configuration first identifies the name of the dedicated server, and it is called UnitName. Then open the file c: /james/apps/james/sar-inf/config.xml. In the config.xml file, find postmaster @ localhost , change this to postmaster @ unitname , the same, find localhost , The item is changed to UnitName . In fact, the two items are to change the default localhost to the machine name, which is to allow other machines to access the mail system. Of course, the premise is that there is no machine with the server on the local area. 4, the client configuration assumes have an account, the username is HOLEN, the password is 123456, how do you configure it in Outlook? First, according to the username, you can derive the user email address as Holen @ UnitName, and then use the server machine name UnitName when entering the POP3 and SMTP servers. 5, account management James account management is done by telnet, the login command is: telnet unitname 4555 where UnitName can also be replaced with IP, 4555 is the port number. When you log in, you need a username and password, the initial username and password are root. If the login is successful, the prompt is as follows:

James Remote Administration Tool 2.1Please Enter Your Login and Password: Welcome root. Help for a list of commands To note that all knocked commands are not displayed on the screen. Enter HELP, the help of the command, the information is as follows:

JAMES Remote Administration Tool 2.1Please enter your login and passwordLogin id: Password: Welcome root HELP for a list of commandsCurrently implemented commands:. Help display this helplistusers display existing accountscountusers display the number of existing accountsadduser [username] [password] add a new userverify [username] verify if specified user existdeluser [username] delete existing usersetpassword [username] [password] sets a user's passwordsetalias [alias] [user] locally forwards all email for 'alias' to' user'unsetalias [alias] unsets an aliassetforwarding [ Username] [EmailAddress] Forwards a user's email to another email addressunsetForwarding [username] removes a forward ketuser [repositoryName] change to another user repositoryShutdown Kills The Current JVM (Convenient When James Is Run As a daemon) Quit Close Connection is commonly used with Listusers, Countusers, Adduser, DELUSER, SETPASSWORD, etc. Among them, the user is AddUser, for example: AddUser Holen 123456. Through this background management interface, administrators can implement account management and other corresponding management functions. 6. After the application, the system has been officially run after a week of trial run, and the number of users has been very stable. During the time, the server is restarted twice due to the operating system failure, and the server is still in other time. Running, stable performance, fast response speed. Fourth, FAQ1, when starting JAMES, prompt POP3 or SMTP can't be used? Please check, see "Management Tools?> Service" inside, is it started with other mail servers, and the 110 or 25 port has been occupied. 2, java_home can't find it? Please specify java_home in run.bat, if you can't, please add a Java_home in "My Computer?> System?> Advanced?> Environment Variables" (generally not recommended to do this).

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

New Post(0)