Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
howtos:network_services:install_openwebmail [2013/02/15 14:50 (UTC)]
wisedraco [Installing OpenWebMail in Slackware64 14.0]
howtos:network_services:install_openwebmail [2013/02/17 08:26 (UTC)]
wisedraco [Install OpenWebMail]
Line 1: Line 1:
-<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> 
 ====== Installing OpenWebMail in Slackware64 14.0 ====== ====== Installing OpenWebMail in Slackware64 14.0 ======
-Topic about openwebmail installation ​and setup for can use your mailbox ​over web interface from any place, where you get internet access and can run webbrowser. + 
-It be based on Slackware64 14.0 64 bit OS and latest openwebmail-current.tar.gz (actually ​ver 2.53)\\  +This article explains how to install OpenWebmail ​and configure it so that you can access ​your mailbox ​using a web interface from any place with internet access and webbrowser ​available.\\  
-It means, you are configured and running Apache web server.+These instructions were tested ​on Slackware64 14.0 64-bit OS and the latest openwebmail-current.tar.gz (actually ​version ​2.53)\\  
 +It means, you are configured and running Apache web server ​and Sendmail mailserver.
  
  
 ====== Install libraries and required packages ====== ====== Install libraries and required packages ======
  
-Using CPAN via CPAN.pm: +Using CPAN via CPAN.pm: ​<​code>​ 
- +perl -MCPAN -e shell                    [as root] 
- perl -MCPAN -e shell                    [as root] +o conf prerequisites_policy ask 
- o conf prerequisites_policy ask+</​code>​
 then: then:
 <​code>​ <​code>​
Line 25: Line 25:
  
 quit quit
- 
 </​code>​ </​code>​
  
 ====== Install OpenWebMail ====== ====== Install OpenWebMail ======
  
-  - First, download latest openwebmail:​ [[http://​openwebmail.org/​openwebmail/​download/​current/​]]openwebmail-current.tar.gz  +  - First, download latest openwebmail:​ [[http://​openwebmail.org/​openwebmail/​download/​current/​|openwebmail-current.tar.gz]]  
-  - Create ​an folder when you want, say "/​ADISKS/​openwebm_inst"​ and move openwebmail-current.tar.gz ​in that +  - Create ​a directory wherever ​you want it, say "''​/​ADISKS/​openwebm_inst''​" and move the downloaded file "''​openwebmail-current.tar.gz''"​ into that directory. 
-  - extract ​files with command <code bash> tar -zxvBpf openwebmail-current.tar.gz </​code>​<note important>​Use "​tar"​ with "​-zxvBpf"​ option, due to strange ​files permissions inside that archive. I try to untar it via midnight comander built-in archive tools, ans wrapsuid script not work due this... ​</​note>​ +  - Extract all files using the command <code bash> 
-  - move untar folder /cgi-bin/​openwebmail to /​var/​www/​cgi-bin/​openwebmail +tar -zxvBpf openwebmail-current.tar.gz 
-  - move untar folder /data/​openwebmail to your webserver ​root ( /​var/​www/​openwebmail ) +</​code> ​**Use "​tar"​ with "​-zxvBpf"​ option, due to strange ​file permissions inside that archive. I tried to untar it via midnight comander built-in archive tools, ans the //wrapsuid// script ​would not work because of this... ​** 
-  - go to /​var/​www/​openwebmail,​ delete index.html and do <code bash> ln -s redirect.html index.html</​code>​ +  - Move the extracted directory "''​cgi-bin/​openwebmail''" ​to "''​/​var/​www/​cgi-bin/​openwebmail''"​ 
-  - go /​var/​www/​cgi-bin/​openwebmail and do <​code>​ perl misc/​tools/​wrapsuid/​wrapsuid.pl /​var/​www/​cgi-bin/​openwebmail </​code> ​you must get <​code>​Fixing /​tmp/​openwebmail/​cgi-bin/​openwebmail/​openwebmail-folder.pl+  - Move the extracted directory "''​data/​openwebmail''" ​to your webserver's //​DocumentRoot// ​(in a default Apache configuration,​ that will be "''​/​var/​www/​openwebmail''"​
 +  - Change directory ​to "''​/​var/​www/​openwebmail''"​, delete ​the file ''​index.html'' ​and run the command ​<code bash> 
 +ln -s redirect.html index.html 
 +</​code>​ 
 +  - Change directory to "''​/​var/​www/​cgi-bin/​openwebmail''" ​and run the command ​<​code>​ 
 +perl misc/​tools/​wrapsuid/​wrapsuid.pl /​var/​www/​cgi-bin/​openwebmail 
 +</​code> ​You should see the following output: ​<​code>​ 
 +Fixing /​tmp/​openwebmail/​cgi-bin/​openwebmail/​openwebmail-folder.pl
 Fixing /​tmp/​openwebmail/​cgi-bin/​openwebmail/​openwebmail-main.pl Fixing /​tmp/​openwebmail/​cgi-bin/​openwebmail/​openwebmail-main.pl
 Fixing /​tmp/​openwebmail/​cgi-bin/​openwebmail/​openwebmail-read.pl Fixing /​tmp/​openwebmail/​cgi-bin/​openwebmail/​openwebmail-read.pl
Line 52: Line 58:
 Fixing /​tmp/​openwebmail/​cgi-bin/​openwebmail/​openwebmail-spell.pl Fixing /​tmp/​openwebmail/​cgi-bin/​openwebmail/​openwebmail-spell.pl
 </​code>​ </​code>​
-  - then go to ''/​var/​www/​cgi-bin/​openwebmail/​etc''​ and edit configs:  +  - Then go to "''/​var/​www/​cgi-bin/​openwebmail/​etc''​" ​and edit the configuration files:  
-  changes ​openwebmail.conf according to: <​code>​+    Change "''​openwebmail.conf''" ​according to: <​code>​
 domainnames ​            ​auto ​                                                                                                                               ​ domainnames ​            ​auto ​                                                                                                                               ​
 auth_module ​            ​auth_unix.pl ​                                                                                                                       ​ auth_module ​            ​auth_unix.pl ​                                                                                                                       ​
Line 62: Line 68:
 ow_htmlurl ​             /                                                                                                                                    ow_htmlurl ​             /                                                                                                                                   
 logfile ​                /​var/​log/​openwebmail.log ​     logfile ​                /​var/​log/​openwebmail.log ​    
- </​code>​ +</​code>​ 
-  Go to in ''/​var/​www/​cgi-bin/​openwebmail/​etc/​defaults'',​ edit auth_unix conf to<​code> ​                                                                                                                                                          +    Change directory ​to "''/​var/​www/​cgi-bin/​openwebmail/​etc/​defaults''​", edit ''​auth_unix conf'' ​to become ​<​code> ​                                                                                                                                                          
 passwdfile_plaintext ​   /​etc/​passwd ​                                                                                                                         passwdfile_plaintext ​   /​etc/​passwd ​                                                                                                                        
 passwdfile_encrypted ​   /​etc/​shadow ​                                                                                                                         passwdfile_encrypted ​   /​etc/​shadow ​                                                                                                                        
-passwdmkdb ​             none               ​</​code>​ +passwdmkdb ​             none 
-  - In ''/​var/​www/​cgi-bin/​openwebmail/​etc/​defaults''​ edit db.conf: <​code>​dbm_ext ​                ​.db ​                                                                                                                                +</​code>​ 
 +    - In directory "''/​var/​www/​cgi-bin/​openwebmail/​etc/​defaults''​", ​edit ''​db.conf''​ as follows: <​code>​ 
 +dbm_ext ​                ​.db ​                                                                                                                                
 dbmopen_ext ​            ​.db ​                                                                                                                                 dbmopen_ext ​            ​.db ​                                                                                                                                
-dbmopen_haslock ​        ​no ​      ​</​code>​ +dbmopen_haslock ​        ​no<​ 
-  - Then, go to ''/​var/​www/​cgi-bin/​openwebmail''​ and do <code bash> ./​openwebmail-tool.pl --init </​code>​+/code> 
 +    - Then, change directory ​to "''/​var/​www/​cgi-bin/​openwebmail''​" ​and run <code bash> 
 +./​openwebmail-tool.pl --init 
 +</​code>​ 
 +  - After that, go to "''/​var/​www/​cgi-bin/​openwebmail''",​ check that there are files starting with a dot (like "''​.openwebmail.pl''"​) and old-style filenames (like "''​openwebmail.pl)''"​. Set the //suid// bit for these scripts: <code bash> 
 +chmod u+s openwebmail*.pl 
 +chmod u+s .openwebmail*.pl 
 +</​code>​
  
-  - after that, go to ''/​var/​www/​cgi-bin/​openwebmail'',​ check it be files starting with dot ( like .openwebmail.pl) and old-style ones (like openwebmail.pl). Do <code bash> chmod u+s openwebmail*.pl in /var/www/cgi-bin/​openwebmail</​code>​+ 
 +====== Apache additional configuration ====== 
 + 
 +  * Add a .pl option to AddHandler cgi-script ​.cgi
  
  
  
-try to write down all my movings until i forget it - finish in 2-3 days, i think. 
 ====== Links ====== ====== Links ======
  
Line 86: Line 103:
   * [[http://​search.cpan.org/​search?​query=CGI&​mode=all]]   * [[http://​search.cpan.org/​search?​query=CGI&​mode=all]]
   * [[http://​svn.apache.org/​repos/​asf/​spamassassin/​branches/​3.3/​INSTALL]]   * [[http://​svn.apache.org/​repos/​asf/​spamassassin/​branches/​3.3/​INSTALL]]
 +
 ====== Sources ====== ====== Sources ======
 +
 <!-- If you are copying information from another source, then specify that source --> <!-- If you are copying information from another source, then specify that source -->
 <!-- * Original source: [[http://​some.website.org/​some/​page.html]] --> <!-- * Original source: [[http://​some.website.org/​some/​page.html]] -->
Line 92: Line 111:
 <!-- * Originally written by [[wiki:​user:​xxx | User X]] --> <!-- * Originally written by [[wiki:​user:​xxx | User X]] -->
 <!-- * Contributions by [[wiki:​user:​yyy | User Y]] --> <!-- * Contributions by [[wiki:​user:​yyy | User Y]] -->
-* With help of user phenixia2003 from LinuxQuestions.org Forums\\   +  ​* With help of user phenixia2003 from LinuxQuestions.org Forums ​  
- * Thanks for editing ​ [[wiki:​user:​alienbob | Eric Hameleers]]\\  +  * Thanks for editing ​ [[wiki:​user:​alienbob|Eric Hameleers]] 
-* Originally written by [[wiki:​user:​wisedraco|John Ciemgals]] ​2013/02/14 05:12//+  * Originally written by [[wiki:​user:​wisedraco|John Ciemgals]] 
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
-<!-- You must remove the tag-word "​template"​ below before saving your new page --> +{{tag>​howtos ​author_wisedraco}}
-{{tag>​howtos }}+

In Other Languages
QR Code
QR Code howtos:network_services:install_openwebmail (generated for current page)