Installing OpenWebmail 2.51

From CobaltFAQs

Installing Open WebMail v2.51. Assumes you already had v2.40 installed from the Nuonce PKG, etc.

Contents

Upgrade MIME-Base64

cd /root
wget http://cpan.org/modules/by-module/MIME/MIME-Base64-3.07.tar.gz
tar zxf MIME-Base64-3.07.tar.gz
cd MIME-Base64-3.07

perl Makefile.PL
make
make test
make install

Get and install Open WebMail

 
cd /root
wget http://www.openwebmail.org/openwebmail/download/current/openwebmail-current.tar.gz
mv openwebmail-current.tar.gz openwebmail-2.51.tar.gz
mkdir owm
cd owm
tar zxf ../openwebmail-2.51.tar.gz
cd /home
mv openwebmail __old_openwebmail
mkdir openwebmail
cd openwebmail
cp -r /root/owm/* .

Configure authentication and permissions

cp /home/__old_openwebmail/cgi-bin/openwebmail/auth/auth_pam_cobalt.pl /home/openwebmail/cgi-bin/openwebmail/auth/.

If you're missing the file, you can get the contents at auth_pam_cobalt.pl

chown -R root.mail *
chmod 0771 /home/openwebmail/cgi-bin/openwebmail/etc/sessions


Disable CGIWrap

cd cgi-bin/openwebmail

Edit .htaccess to contain:

AddHandler cgi-script .pl

Create missing config file

Edit /home/openwebmail/cgi-bin/openwebmail/etc/dbm.conf to contain:

dbm_ext                 .pag
dbmopen_ext             none
dbmopen_haslock         yes

Fix the main configuration file

cd /home/openwebmail/cgi-bin/openwebmail/etc
mv openwebmail.conf openwebmail.conf.orig

Edit openwebmail.conf to contain:

# Open WebMail configuration file
#
# This file contains just the overrides from defaults/openwebmail.conf,
# please make all changes to this file.
#
# This file sets options for all domains and all users.
# To set options on per domain basis, please put them in sites.conf/domainname
# To set options on per user basis, please put them in users.conf/username
#
# Please refer to openwebmail.conf.help for the description of each option

domainnames             auto
domainnames_override    yes

auth_module             auth_pam_cobalt.pl

mailspooldir            /var/spool/mail

ow_cgidir               /home/openwebmail/cgi-bin/openwebmail
ow_cgiurl               /openwebmail-cgi
ow_htmldir              /home/openwebmail/data/openwebmail
ow_htmlurl              /openwebmail

logfile                 /var/log/openwebmail.log

enable_viruscheck       no
enable_spamcheck        no
enable_learnspam        no

default_iconset         Default
default_fscharset       none

<default_signature>
</default_signature>
<page_footer>
</page_footer>

use_homedirspools       yes
homedirspoolname        mbox
spellcheck              /usr/bin/ispell
default_language        en
timeoffset              auto

Run the init script

 /home/openwebmail/cgi-bin/openwebmail/openwebmail-tool.pl --init


Open WebMail should now be working at http://www.example.com/webmail

Views