Apache Mail configuration I want to download apache-james-2.3.2.tar through php mail. after decompression, click run. bat to return in seconds? If you have any idea about how to configure the mail server, please kindly advise. thank you first.
Reply to discussion (solution)
Http://wenku.baidu.com/link? Url = AKMpZxzuM0TRtMSqPKwiQeGYop-PNm1-KQKlS0y8AaWJXei2nGpqPDMeatPZOvosWKAPziWbsrs50LctmnXuueIoEQkzgnM0ghFg8OHvi7e
I have read that file, but there is no install file in the James \ bin folder, but thank you.
James installation and configuration
1. installation:
1. environment requirements:
The Java platform has been installed. the version is j2sdk1.4.2 and the environment variable JAVA_HOME is set to C: \ j2sdk1.4.2;
2. download and run:
Download a compressed file james-2.1-bin.zip from the apacheweb site, which is 4.44 MB in size and decompress the package to C: \ James \ james-2.1.
There are two ways to run the service: directly running on the foreground and running as a background service;
1> run the following command directly on the foreground:
Run. bat under C: \ James \ james-2.1 \ bin
This will show:
Using PHOENIX_HOME: C: \ James \ james-2.1
Using PHOENIX_TMPDIR: C: \ James \ james-2.1 \ temp
Using JAVA_HOME: C: \ j2sdk1.4.2
Phoenix 4.0.1
James 2.1
Remote Manager Service started plain: 4555
POP3 Service started plain: 110
SMTP Service started plain: 25
NNTP Service Disabled
Fetch POP Disabled
This indicates that the James mail service is enabled, but the console Window cannot be closed under the Window. Otherwise, the mail service will stop. To overcome this disadvantage, you must use the James mail service as the background service.
Press Ctrl + C to stop the front-end operation:
JVM exiting abnormally. Shutting down Phoenix.
Terminate the batch processing operation (Y/N )?
2> background service running:
Copy wrapper. conf under the C: \ James \ james-2.1 \ conf directory to the directory C: \ James \ james-2.1 \ binthat contains wrapper.exe and run:
Wrapper.exe-I C: \ James \ james-2.1 \ bin \ wrapper. conf
Enable or restart the service on the control panel.
Uninstall background services:
Run:
Wrapper.exe-r C: \ James \ james-2.1 \ bin \ wrapper. conf
3.
II. configuration:
1> server configuration (assume the email server name is EmailServer and the server administrator name is Admin)
First stop the opened James mail service, and then open the file C: \ James \ james-2.1 \ apps \ james \ SAR-INF \ config. xml.
In the config. xml file, locate Postmaster @ localhost, change this item to Admin @ EmailServer, and find
-
-
-
-
-
Localhost
And change this item to EmailServer. In this way, other machines can access the mail system.
DNS configuration: find the file above The following section:
-
-
-
-
-
127.0.0.1
False
Enter 127.0.0.1 to the IP address of the DNS server;
Modify the administrator password:
Find the section in the same file as above, as shown in the following section:
-
-
-
Change the default username root and password root to the desired value.
Modify the logon port of the telnet management program: (4555 by default)
Find The following section describes the port
-
4555
-
- Comment out and open it. remember
Use Comment out;
After modification, we changed the storage medium of user information from file to db, Indicates the structure of the data table in the database and related database information.
Step 4: still config. xml, find Item. the default content is null. modify the content:
Org. gjt. mm. mysql. Driver
Jdbc: mysql: // 127.0.0.1/mail
Root
20
Or open Note
It refers to the JDBC driver of MySQL. Note that this default There is a problem. you need to change the path of Driver. class in the MySQL Driver, that is:
Com. mysql. jdbc. Driver
Refers to the database access path. the mail after the IP address is the name of the newly created database in MySQL, followed by the user name, password, and maximum number of connections.
When it starts again, james will automatically create a user-related table in the mail database.
So far, the database configuration is complete and James is started. if it is normal, add a new user through telnet, such as adduser holen 123456, and then check the mail database in MySQL. The following table is users, this is based on file: // conf/sqlResources. xml content.
With the above configuration, James's user information can be saved in the database.
Note: the previous account will be lost!
I. FAQs
1. when james is started, the system prompts that POP3 or SMTP cannot be used?
Check to see "management tools?> If other email servers have been started, port 110 or port 25 has been occupied.
Instance:
An error occurred while running james at the front-end:
ERROR 08:58:38. 642 [Phoenix.] (): Component named "smtpserver" failed to pass through the Initialization stage. (Reason: java.net. BindException: Address already in use: JVM_Bind ).
ERROR 08:58:38. 652 [Phoenix.] (): There was an error running phase "startup" for Block named "smtpserver ". (Reason: Component named "smtpserver" failed to pass through the Initialization stage. (Reason: java.net. bindException: Address already in use: JVM_Bind ).).
Org. apache. excalibur. containerkit. lifecycle. LifecycleException: Component named "smtpserver" failed to pass through the Initialization stage. (Reason: java.net. BindException: Address already in use: warning ).
Cause:
By default, james does not allow two email server processes to run on the same machine. You must turn off another one!
Check method:
Console:
D:> telnet host name 25 (or 110)
If you can log on
220 host name: Microsoft esmtp mail Service, Version: 6.0.2600.1106 ready at Thu,
25 Aug 2005 14:14:36 + 0800
It indicates that an email server is running on this machine.
Solution:
Check the running service on Windows:
The Simple Mail Transfer Protocol (SMTP) service for cross-network transmission of email, whether to start
For example, start and close!
2. Why can't JAVA_HOME be found?
Please specify JAVA_HOME in run. bat. if not, please go to "my computer?> System?> Advanced?> Add a JAVA_HOME item to the environment variable.
3. is the server started normally, but the client cannot send or receive emails?
Check whether the client configuration is normal. refer to the previous instructions. In addition, check config. xml under james to change localhost to the machine name.
4. james startup error after being modified to database storage:
Generally, database drivers are incorrect. Check
Org. gjt. mm. mysql. Driver
Jdbc: mysql: // 127.0.0.1/mail
Root
20
Of Org. gjt. mm. mysql. Driver Pair