How to install Open Webmail on Fedora Core 1 ============================================ By Thomas Chung (tchung AT openwebmail.org) Last Updated 2004-06-28 Prerequisite: httpd-2.0.47-10 and httpd service is running sendmail-8.12.10-1.1.1 and sendmail service is running 1. install all perl rpm packages in this directory if you haven't installed yet. NOTE1: Stock FC1 perl-5.8.1-92 now includes required perl-CGI, perl-MIME-Base64, perl-libnet already NOTE2: If you have newer version of perl-5.8.3-16, make sure to install corresponding perl-suidperl-5.8.3-16.1 by issuing 'yum update perl-suidperl' 2. install the latest openwebmail rpm build from daily build directory 3. initialize openwebmail database using openwebmail-tool.pl [root@localhost root]# cd /var/www/cgi-bin/openwebmail [root@localhost openwebmail]# ./openwebmail-tool.pl --init Please change './etc/dbm.conf' from dbm_ext .db dbmopen_ext none dbmopen_haslock no to dbm_ext .db dbmopen_ext .db dbmopen_haslock yes And execute './openwebmail-tool.pl --init' again! ps: If you are running openwebmail in persistent mode, don't forget to 'touch openwebmail*.pl', so speedycgi will reload all scripts, modules and conf files in --init. NOTE3: If you don't have dbm.conf file, create it with above values. Values in dbm.conf will overwrite values in dbm.conf.defult [root@localhost openwebmail]# cd etc [root@localhost etc]# vi dbm.conf dbm_ext .db dbmopen_ext .db dbmopen_haslock yes [root@localhost etc]# cd .. [root@localhost openwebmail]# ./openwebmail-tool.pl --init creating db /var/www/cgi-bin/openwebmail/etc/b2g ...done. creating db /var/www/cgi-bin/openwebmail/etc/g2b ...done. creating db /var/www/cgi-bin/openwebmail/etc/lunar ...done. Welcome to the Open WebMail! 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: Linux 2.4.22-1.2115.nptl i686 Perl: 5.008001 WebMail: Open WebMail 2.30 20040105 Send the site report?(Y/n) n Thank you. [root@localhost openwebmail]# 4. create a user account if you haven't created one yet 5. login to openwebmail using a user account http://localhost.localdomain/cgi-bin/openwebmail/openwebmail.pl For Sendmail Security ===================== For security reasons, the default configuration of sendmail allows sending, but not receiving over the net (by default it will only accept connections on the loopback interface.) # cd /etc/mail # vi sendmail.mc dnl # The following causes sendmail to only listen on the IPv4 loopback address dnl # 127.0.0.1 and not on any other network devices. Remove the loopback dnl # address restriction to accept email from the internet or intranet. dnl # dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl dnl # We strongly recommend not accepting unresolvable domains if you want to dnl # protect yourself from spam. However, the laptop and users on computers dnl # that do not have 24x7 DNS do need this. dnl # dnl FEATURE(`accept_unresolvable_domains')dnl dnl # This is the sendmail macro config file for m4. If you make changes to dnl # /etc/mail/sendmail.mc, you will need to regenerate the dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is dnl # installed and then performing a dnl # dnl # make -C /etc/mail # make -C /etc/mail # service sendmail restart For Virtual Hosting Domains =========================== If you are hosting mutiple domains with virtualHost directive, add following lines in httpd.conf to access openwebmail login screen for each domain. ex) http://domain.com/webmail # Open Webmail ScriptAlias, Alias ScriptAlias /webmail "/var/www/cgi-bin/openwebmail/openwebmail.pl" Alias /data "/var/www/data" Don't forget to restart httpd.