About Download Developers Document FAQ Contact

Document

How to Install YoUmail 2.0

1.Install JDK
shell>sh j2sdk-1_4_2_01-linux-i586.bin
shell>mv j2sdk1.4.2_01 /usr/local/jdk

2.Install Resin
Unpack resin-xx.tar.gz to /usr/local/resin
Configure the connection pool to yours,mine is:
         <database>
           <jndi-name>jdbc/mysql</jndi-name>
            <driver type="org.gjt.mm.mysql.Driver">
             <url>jdbc:mysql://localhost:3306/vpopmail</url>
              <init-param param-name="useUnicode" param-value="true"/>
              <init-param param-name="characterEncoding" param-value="GBK"/>
              <user>root</user>
             <password>123456</password>
            </driver>
            <max-connections>20</max-connections>
            <max-idle-time>30s</max-idle-time>
          </database>

3.Edit /etc/profile Appand to /etc/profile:
export RESIN_HOME=/usr/local/resin
export JAVA_HOME=/usr/local/jdk
export CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$RESIN_HOME/bin

4.Give db access privileges to JDBC:
shell>mysql -u root -p mysql>GRANT ALL PRIVILEGES ON vpopmail.* to 'root'@'youmail' identified by '123456';
change 'youmail' to your hostname,and '123456' to your password
5.Alter Tables
mysql>ALTER TABLE `vpopmail` ADD `permit` SMALLINT( 1 ) UNSIGNED NOT NULL default '1';
Since 2.0 now has few functions,it uses few tables.


SourceForge.net Logo
Copyright © 2004, topmint@hit.edu.cn