Openwebmail 2.53 installation and configuration in non-global zones

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Openwebmail 2.53 installation and configuration in non-global zones

Post by cah »

I downloaded the latest version (2.53) from Open Webmail and installed in a non-global zone.

http://openwebmail.org/openwebmail/download/release/

Code: Select all

gzcat openwebmail-2.53.tar.gz | tar xf -
cp -rp data/openwebmail /var/apache2/htdocs
cp -rp cgi-bin/openwebmail /var/apache2/cgi-bin
Modified the following files in /var/apache2/cgi-bin/openwebmail/etc/defaults:

auth_unix.conf

Code: Select all

#passwdfile_encrypted   /etc/master.passwd
passwdfile_encrypted    /etc/shadow
dbm.conf

Code: Select all

#dbm_ext                        .db
dbm_ext                 .pag
openwebmail.conf

Code: Select all

##############################################################################
# openwebmail system configuration
##############################################################################
#ow_cgidir              /usr/local/www/cgi-bin/openwebmail
ow_cgidir               /var/apache2/cgi-bin/openwebmail
ow_cgiurl               /cgi-bin/openwebmail
#ow_htmldir             /usr/local/www/data/openwebmail
ow_htmldir              /var/apache2/htdocs/openwebmail
#ow_htmlurl             /openwebmail
ow_htmlurl
/var/apache2/cgi-bin/openwebmail/etc:

openwebmail.conf

Code: Select all

#ow_cgidir              /usr/local/www/cgi-bin/openwebmail
ow_cgidir               /var/apache2/cgi-bin/openwebmail
ow_cgiurl               /cgi-bin/openwebmail
#ow_htmldir             /usr/local/www/data/openwebmail
ow_htmldir              /var/apache2/htdocs/openwebmail
#ow_htmlurl             /openwebmail
ow_htmlurl
cp -p filter.book filter.book.ori

Remove the following 2 lines from filter.book:

Code: Select all

30@@@from@@@include@@@\s{7}@@@move@@@mail-trash@@@1@@@iso-8859-1
30@@@from@@@include@@@[a-z][0-9]{6,11}@(yahoo|hotmail|pchome)\.com@@@move@@@mail-trash@@@1@@@iso-8859-1
After the configuration is done, openwebmail needs to be initialized. Before initializing openwebmail, "/etc/openwebmail_path.conf" needs to be created with the following path in it.

Code: Select all

/var/apache2/cgi-bin/openwebmail
Then, run the following command to initialize openwebmail:

Code: Select all

/var/apache2/cgi-bin/openwebmail/openwebmail-tool.pl --init

creating db /var/apache2/cgi-bin/openwebmail/etc/maps/b2g ...done.
creating db /var/apache2/cgi-bin/openwebmail/etc/maps/g2b ...done.
creating db /var/apache2/cgi-bin/openwebmail/etc/maps/lunar ...done.

Creating UTF-8 locales...
langconv ar_AE.CP1256 -> ar_AE.UTF-8
langconv ar_AE.ISO8859-6 -> ar_AE.UTF-8
langconv bg_BG.CP1251 -> bg_BG.UTF-8
langconv ca_ES.ISO8859-1 -> ca_ES.UTF-8
langconv cs_CZ.ISO8859-2 -> cs_CZ.UTF-8
langconv da_DK.ISO8859-1 -> da_DK.UTF-8
langconv de_DE.ISO8859-1 -> de_DE.UTF-8
langconv el_GR.ISO8859-7 -> el_GR.UTF-8
langconv en_US.ISO8859-1 -> en_US.UTF-8
langconv es_AR.ISO8859-1 -> es_AR.UTF-8
langconv fi_FI.ISO8859-1 -> fi_FI.UTF-8
langconv fr_FR.ISO8859-1 -> fr_FR.UTF-8
langconv he_IL.CP1255 -> he_IL.UTF-8
langconv hr_HR.ISO8859-2 -> hr_HR.UTF-8
langconv hu_HU.ISO8859-2 -> hu_HU.UTF-8
langconv id_ID.ISO8859-1 -> id_ID.UTF-8
langconv it_IT.ISO8859-1 -> it_IT.UTF-8
langconv ko_KR.eucKR -> ko_KR.UTF-8
langconv lt_LT.CP1257 -> lt_LT.UTF-8
langconv nl_NL.ISO8859-1 -> nl_NL.UTF-8
langconv no_NO.ISO8859-1 -> no_NO.UTF-8
langconv pl_PL.ISO8859-2 -> pl_PL.UTF-8
langconv pt_BR.ISO8859-1 -> pt_BR.UTF-8
langconv pt_PT.ISO8859-1 -> pt_PT.UTF-8
langconv ro_RO.ISO8859-2 -> ro_RO.UTF-8
langconv ru_RU.KOI8-R -> ru_RU.UTF-8
langconv sk_SK.ISO8859-2 -> sk_SK.UTF-8
langconv sl_SI.CP1250 -> sl_SI.UTF-8
langconv sr_CS.ISO8859-2 -> sr_CS.UTF-8
langconv sv_SE.ISO8859-1 -> sv_SE.UTF-8
langconv th_TH.TIS-620 -> th_TH.UTF-8
langconv tr_TR.ISO8859-9 -> tr_TR.UTF-8
langconv uk_UA.KOI8-U -> uk_UA.UTF-8
...done.

Welcome to the OpenWebMail!

This program is going to send a short message back to the developer,
so we could have the idea that who is installing and how many sites are
using this software, the content to be sent is:

OS: SunOS 5.10 i86pc
Perl: 5.010000
WebMail: OpenWebMail 2.53 20080123

Send the site report?(Y/n) n

Thank you.
I also set up a virtual host in Apache for openwebmail - http://openwebmail.geminitwins.net/.
Therefore, I also had to create a new domain name in named for it.

After configuring both Apache and named, a reload for named and a restart for Apache are needed to pick up all the new configurations.

I can now use the openwebmail for geminitwins.net to send and receive email messages. The only exception is geminitwins.net can NOT send email to hsiao.net but it can receive email from hsiao.net without problems.
CAH, The Great
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Upgrading to Openwebmail 2.53 on hsiao.net

Post by cah »

Code: Select all

cd /tmp
gzcat /work/applications/openwebmail-2.53.tar.gz | tar xf -

cd /export/home/www/html
mv openwebmail openwebmail.2.52
mv /tmp/data/openwebmail .

cd /export/home/www/cgi-bin
mv openwebmail openwebmail.2.52
mv /tmp/cgi-bin/openwebmail .
Modified the following files in /export/home/www/cgi-bin/openwebmail/etc/defaults:

auth_unix.conf

Code: Select all

#passwdfile_encrypted   /etc/master.passwd
passwdfile_encrypted    /etc/shadow
dbm.conf

Code: Select all

#dbm_ext                        .db
dbm_ext                 .pag
openwebmail.conf

Code: Select all

##############################################################################
# openwebmail system configuration
##############################################################################
#ow_cgidir              /usr/local/www/cgi-bin/openwebmail
ow_cgidir               /export/home/www/cgi-bin/openwebmail
ow_cgiurl               /cgi-bin/openwebmail
#ow_htmldir             /usr/local/www/data/openwebmail
ow_htmldir              /export/home/www/htdocs/openwebmail
#ow_htmlurl             /openwebmail
ow_htmlurl
/export/home/www/cgi-bin/openwebmail/etc:

openwebmail.conf

Code: Select all

#ow_cgidir              /usr/local/www/cgi-bin/openwebmail
ow_cgidir               /export/home/www/cgi-bin/openwebmail
ow_cgiurl               /cgi-bin/openwebmail
#ow_htmldir             /usr/local/www/data/openwebmail
ow_htmldir              /export/home/www/htdocs/openwebmail
#ow_htmlurl             /openwebmail
ow_htmlurl
cp -p filter.book filter.book.ori

Remove the following 2 lines from filter.book:

Code: Select all

30@@@from@@@include@@@\s{7}@@@move@@@mail-trash@@@1@@@iso-8859-1
30@@@from@@@include@@@[a-z][0-9]{6,11}@(yahoo|hotmail|pchome)\.com@@@move@@@mail-trash@@@1@@@iso-8859-1
After the configuration is done, openwebmail needs to be initialized. Before initializing openwebmail, "/etc/openwebmail_path.conf" needs to be created with the following path in it.

Code: Select all

/export/home/www/cgi-bin/openwebmail
/export/home/www/cgi-bin/openwebmail/etc/sessions needs to be writable for web server:

Code: Select all

chmod g+w /export/home/www/cgi-bin/openwebmail/etc/sessions
Perl files need to have root's setuid:

Code: Select all

'/export/home/www/cgi-bin/openwebmail/openwebmail.pl' must setuid to root
'/export/home/www/cgi-bin/openwebmail/openwebmail-abook.pl' must setuid to root
'/export/home/www/cgi-bin/openwebmail/openwebmail-main.pl' must setuid to root
'/export/home/www/cgi-bin/openwebmail/openwebmail-prefs.pl' must setuid to root
'/export/home/www/cgi-bin/openwebmail/openwebmail-read.pl' must setuid to root
'/export/home/www/cgi-bin/openwebmail/openwebmail-send.pl' must setuid to root
.....

chown root /export/home/www/cgi-bin/openwebmail/*.pl
chmod u+s /export/home/www/cgi-bin/openwebmail/*.pl
Then, run the following command to initialize openwebmail:

Code: Select all

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

creating db /export/hom/cgi-bin/openwebmail/etc/maps/b2g ...done.
creating db /export/hom/cgi-bin/openwebmail/etc/maps/g2b ...done.
creating db /export/hom/cgi-bin/openwebmail/etc/maps/lunar ...done.

Creating UTF-8 locales...
langconv ar_AE.CP1256 -> ar_AE.UTF-8
langconv ar_AE.ISO8859-6 -> ar_AE.UTF-8
langconv bg_BG.CP1251 -> bg_BG.UTF-8
langconv ca_ES.ISO8859-1 -> ca_ES.UTF-8
langconv cs_CZ.ISO8859-2 -> cs_CZ.UTF-8
langconv da_DK.ISO8859-1 -> da_DK.UTF-8
langconv de_DE.ISO8859-1 -> de_DE.UTF-8
langconv el_GR.ISO8859-7 -> el_GR.UTF-8
langconv en_US.ISO8859-1 -> en_US.UTF-8
langconv es_AR.ISO8859-1 -> es_AR.UTF-8
langconv fi_FI.ISO8859-1 -> fi_FI.UTF-8
langconv fr_FR.ISO8859-1 -> fr_FR.UTF-8
langconv he_IL.CP1255 -> he_IL.UTF-8
langconv hr_HR.ISO8859-2 -> hr_HR.UTF-8
langconv hu_HU.ISO8859-2 -> hu_HU.UTF-8
langconv id_ID.ISO8859-1 -> id_ID.UTF-8
langconv it_IT.ISO8859-1 -> it_IT.UTF-8
langconv ko_KR.eucKR -> ko_KR.UTF-8
langconv lt_LT.CP1257 -> lt_LT.UTF-8
langconv nl_NL.ISO8859-1 -> nl_NL.UTF-8
langconv no_NO.ISO8859-1 -> no_NO.UTF-8
langconv pl_PL.ISO8859-2 -> pl_PL.UTF-8
langconv pt_BR.ISO8859-1 -> pt_BR.UTF-8
langconv pt_PT.ISO8859-1 -> pt_PT.UTF-8
langconv ro_RO.ISO8859-2 -> ro_RO.UTF-8
langconv ru_RU.KOI8-R -> ru_RU.UTF-8
langconv sk_SK.ISO8859-2 -> sk_SK.UTF-8
langconv sl_SI.CP1250 -> sl_SI.UTF-8
langconv sr_CS.ISO8859-2 -> sr_CS.UTF-8
langconv sv_SE.ISO8859-1 -> sv_SE.UTF-8
langconv th_TH.TIS-620 -> th_TH.UTF-8
langconv tr_TR.ISO8859-9 -> tr_TR.UTF-8
langconv uk_UA.KOI8-U -> uk_UA.UTF-8
...done.

Welcome to the OpenWebMail!

This program is going to send a short message back to the developer,
so we could have the idea that who is installing and how many sites are
using this software, the content to be sent is:

OS: SunOS 5.10 i86pc
Perl: 5.010000
WebMail: OpenWebMail 2.53 20080123

Send the site report?(Y/n) n

Thank you.
That should be it.
CAH, The Great
Post Reply