[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

This is an old revision of the document!


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)
It means, you are configured and running Apache web server and Sendmail mailserver.

Install libraries and required packages

Using CPAN via CPAN.pm:

perl -MCPAN -e shell                    [as root]
o conf prerequisites_policy ask

then:

install CGI
install Compress:Zlib
install Convert::ASN1
install Digest
install Digest::MD5
install IO::Socket::SSL
install MIME::Base64
install Net::SSLeay
install Text::Iconv

quit

Install OpenWebMail

  1. First, download latest openwebmail: http://openwebmail.org/openwebmail/download/current/openwebmail-current.tar.gz
  2. Create an folder when you want, say a “/ADISKS/openwebm_inst” and move openwebmail-current.tar.gz in that
  3. extract files with command
     tar -zxvBpf openwebmail-current.tar.gz 

    <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>

  4. move untar folder /cgi-bin/openwebmail to /var/www/cgi-bin/openwebmail
  5. move untar folder /data/openwebmail to your webserver root ( /var/www/openwebmail )
  6. go to /var/www/openwebmail, delete index.html and do
     ln -s redirect.html index.html
  7. go /var/www/cgi-bin/openwebmail and do
     perl misc/tools/wrapsuid/wrapsuid.pl /var/www/cgi-bin/openwebmail 

    you must get

    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-read.pl
    Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-send.pl
    Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-cal.pl
    Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-webdisk.pl
    Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail.pl
    Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-advsearch.pl
    Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-abook.pl
    Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-viewatt.pl
    Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-vdomain.pl
    Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-saprefs.pl
    Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-prefs.pl
    Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-tool.pl
    Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-spell.pl
  8. then go to /var/www/cgi-bin/openwebmail/etc and edit configs:
  9. changes openwebmail.conf according to:
    domainnames             auto                                                                                                                                
    auth_module             auth_unix.pl                                                                                                                        
    mailspooldir            /var/spool/mail                                                                                                                     
    ow_cgidir               /var/www/cgi-bin/openwebmail                                                                                                        
    ow_cgiurl               /cgi-bin/openwebmail                                                                                                                
    ow_htmldir              /var/www/openwebmail                                                                                                                
    ow_htmlurl              /                                                                                                                                   
    logfile                 /var/log/openwebmail.log     
     
  10. Go to in /var/www/cgi-bin/openwebmail/etc/defaults, edit auth_unix conf to:
                                                                                                                                                               
    passwdfile_plaintext    /etc/passwd                                                                                                                         
    passwdfile_encrypted    /etc/shadow                                                                                                                         
    passwdmkdb              none               
  11. In /var/www/cgi-bin/openwebmail/etc/defaults edit db.conf:
    dbm_ext                 .db                                                                                                                                 
    dbmopen_ext             .db                                                                                                                                 
    dbmopen_haslock         no       
  12. Then, go to /var/www/cgi-bin/openwebmail and do
     ./openwebmail-tool.pl --init 
  1. after that, go to /var/www/cgi-bin/openwebmail, check it be a files starting with dot ( like .openwebmail.pl) and old-style ones (like openwebmail.pl). Do
     chmod u+s openwebmail*.pl in /var/www/cgi-bin/openwebmail

try to write down all my movings until i forget it - finish in 2-3 days, i think.

Links

Sources

* With help of user phenixia2003 from LinuxQuestions.org Forums
* Thanks for editing Eric Hameleers
* Originally written by John Ciemgals 2013/02/14 05:12