How to install Open WebMail on Fedora Core 3 ============================================ By Thomas Chung created 2004-11-16 updated 2005-03-28 Prerequisite: httpd-2.0.52-3.1 and httpd service is running sendmail-8.13.1-2 and sendmail service is running 1. install all perl rpm packages in this directory if you haven't installed yet. NOTE : Stock FC3 perl-5.8.5-9 includes required perl-CGI, perl-MIME-Base64, perl-libnet already 2. install the latest openwebmail rpm build from daily build directory 3. initialize openwebmail database using openwebmail-tool.pl [root@tchung-test1 ~]# cd /var/www/cgi-bin/openwebmail/ [root@tchung-test1 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 no 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. [root@tchung-test1 openwebmail]# vi etc/dbm.conf dbm_ext .db dbmopen_ext .db dbmopen_haslock no [root@tchung-test1 openwebmail]# ./openwebmail-tool.pl --init creating db /var/www/cgi-bin/openwebmail/etc/maps/b2g ...done. creating db /var/www/cgi-bin/openwebmail/etc/maps/g2b ...done. creating db /var/www/cgi-bin/openwebmail/etc/maps/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.6.9-1.667smp i686 Perl: 5.008005 WebMail: Open WebMail 2.41 20041116 Send the site report?(Y/n) n Thank you. [root@tchung-test1 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 NOTE ==== If you get following message, you need to install sendmail-cf package: [root@tchung-test1 mail]# make -C /etc/mail make: Entering directory `/etc/mail' WARNING: 'sendmail.mc' is modified. Please install package sendmail-cf to update your configuration. WARNING: 'submit.mc' is modified. Please install package sendmail-cf to update your configuration. make: Leaving directory `/etc/mail' [root@tchung-test1 mail]# rpm -q sendmail-cf package sendmail-cf is not installed [root@tchung-test1 mail]# yum install sendmail-cf ..omitted.. [root@tchung-test1 mail]# make -C /etc/mail make: Entering directory `/etc/mail' make: Leaving directory `/etc/mail' 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. SELinux ======= SELinux is enabled by default in FC3 and there have been several reports issues between SELinux and Open Webmail. To disable SELinux in FC3, set "SELINUX=disabled" in /etc/selinux/config Ref: http://fedora.redhat.com/docs/selinux-faq-fc3/