I used Debian 6.0.0 OS.
At first we need apache.
apt-get install apache2
Download openwebmail tar from internet.
#wget http://www.openwebmail.org/openwebmail/download/release/openwebmail-2.53.tar.gz
tar -zxvf openwebmail-2.53.tar.gz
you will get to dirrectories named: "data" and "cgi-bin"
cp -R cgi-bin/openwebmail /usr/lib/cgi-bin/
cd data/
cp -R openwebmail /var/www
vim /usr/lib/cgi-bin/openwebmail/etc/openwebmail.conf
Edit the following:
domainnames pijush.com
auth_module auth_unix.pl
mailspooldir /var/mail
ow_cgidir /usr/lib/cgi-bin/openwebmail
ow_cgiurl /cgi-bin/openwebmail
ow_htmldir /var/www/openwebmail
ow_htmlurl /openwebmail
logfile /var/log/openwebmail.log
vim /usr/lib/cgi-bin/openwebmail/etc/defaults/auth_unix.conf
Edit the following:
passwdfile_encrypted /etc/shadow
passwdmkdb none
vim /usr/lib/cgi-bin/openwebmail/etc/defaults/dbm.conf
Edit the following:
dbm_ext .pag
dbmopen_ext none
dbmopen_haslock no
Install the following dependencies.
apt-get install perl-suid
apt-get install libhtml-template-perl
cd /usr/lib/cgi-bin/openwebmail
#chmod 4555 *.pl
cd /var/www
# chown -R www-data:www-data openwebmail
cd /usr/lib/cgi-bin/openwebmail/etc/
# chmod 777 sessions
cd /usr/lib/cgi-bin/openwebmail
# ./openwebmail-tool.pl --init |
|
No comments:
Post a Comment