1.从http://www.openwebmail.org/openwebmail/download/release/2.53/下载压缩包。

2.用tar -zxvf 命令解压缩。

3.进入/var/www/cgi-bin/openwebmail,执行openwebmail-tool.pl  --init ,然后选择Y。

    [root@dns dvd]# ls

    openwebmail-2.53-3.i386.rpm perl-suidperl-5.8.8-18.el5.i386.rpm
    openwebmail-data-2.53-3.i386.rpm perl-Text-Iconv-1.7-2.el5.i386.rpm
    [root@dns dvd]# rpm -ivh --aid perl-suidperl-5.8.8-18.el5.i386.rpm
    warning: perl-suidperl-5.8.8-18.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
    Preparing... ########################################### [100%]
   1:perl-suidperl ########################################### [100%]
    [root@dns dvd]# rpm -ivh --aid perl-Text-Iconv-1.7-2.el5.i386.rpm
    Preparing... ########################################### [100%]
   1:perl-Text-Iconv ########################################### [100%]
   [root@dns dvd]# rpm -ivh --aid openwebmail-data-2.53-3.i386.rpm
   warning: openwebmail-data-2.53-3.i386.rpm: Header V3 DSA signature: NOKEY, key ID cfb164d8
  error: Failed dependencies:
 openwebmail = 2.53-3 is needed by openwebmail-data-2.53-3.i386
  [root@dns dvd]# rpm -ivh --aid openwebmail-2.53-3.i386.rpm
   warning: openwebmail-2.53-3.i386.rpm: Header V3 DSA signature: NOKEY, key ID cfb164d8
   error: Failed dependencies:
   openwebmail-data = 2.53-3 is needed by openwebmail-2.53-3.i386
  [root@dns dvd]# rpm -ivh openwebmail-data-2.53-3.i386.rpm openwebmail-2.53-3.i386.rpm
  warning: openwebmail-data-2.53-3.i386.rpm: Header V3 DSA signature: NOKEY, key ID cfb164d8
  Preparing... ########################################### [100%]
 1:openwebmail ########################################### [ 50%]
     See post install instruction at:
     /usr/share/doc/openwebmail-2.53/openwebmail-post.txt
 2:openwebmail-data ########################################### [100%]

4.编辑vim /var/www/cgi-bin/openwebmail/etc/openwebmail.conf

   domainnames auto改成domainnames xxx.com
   default_language en改成default_language zh_CN.GB2312

   default_iconset Cool3D.English改成default_iconset Cool3D.Chinese.Simplified

5.修改系统的SELinux设置

touch /var/log/openwebmail.log 
chcon -u system_u /var/log/openwebmail.log 
chcon -t httpd_sys_script_rw_t /var/log/openwebmail.log 
chcon -t httpd_unconfined_script_exec_t /var/www/cgi-bin/openwebmail/openwebmail*

touch /var/log/openwebmail.log ==>这是产生一个log档 
chcon -u system_u /var/log/openwebmail.log ==>这是修改文件使用者权限 
chcon -t httpd_sys_script_rw_t /var/log/openwebmail.log ==>这是修改写入权限 
chcon -t httpd_unconfined_script_exec_t /var/www/cgi-bin/openwebmail/openwebmail* ==>这是修改文件由什么套件专用 
6.浏览器访问:http://mail.xxx.com/webmail

7.排错

  a. /var/www/cgi-bin/openwebmail/openwebmail-*.pl must setuid to root

  修改权限 chmod 4755 /var/www/cgi-bin/openwebmail/openwebmail-*.pl

  b.修改/var/www/cgi-bin/openwebmail/etc/session的权限。

 c.http://hi.baidu.com/%C8%CE%D6%D2%BB%A2/blog/item/1263091e672653c0a6866947.html