openwebmail提供了可视化的邮件管理系统,它运行在Apache环境下。在官网下载openwebmail,解压,其中cgi-bin是要执行的程序,而data是数据部分。因此在后面我们要改的地方都集中在cgi-bin目录下的openwebmail
[root@localhost ~]# yum install –y perl-TextIconv perl-CGI perl-CPAN perl-suidper perl-YAML
[root@localhost ~]# tar –xvf openwebmail-2-53.tar
[root@localhost ~]# mv cgi-bin/openwebmail /var/www/cgi-bin/
[root@localhost ~]# cp –r data/ /var/www/
[root@localhost ~]# mv data/openwebmail /var/www/html/
[root@localhost ~]# chmod –R 777 /var/www/cgi-bin/openwebmail/
[root@localhost ~]# chmod 4555 /usr/bin/suidperl
[root@localhost openwebmail]# gedit etc/openwebmail.conf
domainnames auto
auth_module auth_unix.pl
mailspooldir /var/mail
ow_cgidir /var/www/cgi-bin/openwebmail //网页程序路径
ow_cgiurl /cgi-bin/openwebmail
ow_htmldir /var/www/data/openwebmail //网页数据路径
ow_htmlurl /openwebmail
logfile /var/log/openwebmail.log
[root@localhost openwebmail]# cp etc/defaults/auth_unix.conf etc/
[root@localhost openwebmail]# gedit etc/auth_unix.conf
passwdfile_encrypted/etc/shadow
passwdmkdb none
[root@localhost openwebmail]# cp etc/defaults/dbm.conf etc/
dbm_ext .pag
dbmopen_ext none
dbmopen_haslock no
[root@localhost openwebmail]# ./openwebmail-tool.pl --init
creating db /var/www/cgi-bin/openwebmail/etc/maps/b2g ...done.
...done.
Welcome to the OpenWebMail!
Send the site report?(Y/n) yes //这里必须输入yes
sending report...
Thank you.
[root@localhost openwebmail]# service httpd restart
停止httpd: [确定]
正在启动 httpd:httpd: Could not reliably determine the server‘s fully qualified domain name, using localhost.localdomain for ServerName
[确定]