Search:  
Gentoo Wiki

HOWTO_Install_Hula_Mailserver

Contents

Intoduction

Warning: The Hula website is dead and a search of the internet turned up the following message from 2006 announcing the end of official support for the project.


This HowTo discribes, how you can install Hula under Gentoo Linux and setup a multiple domain mail system.

"Hula is a calendar and mail server whose goal is to be fun and easy to use, while scaling effortlessly from small groups to large organizations with thousands of members." (from Hula Project)"

Hula is an open source project, that is based on the source code of Novell's Netmail 3.5. But compared to Postfix or Sendmail it has an integrated webbased administration, webmail interface and webbased calendar.

Package Requirements

Prepare your system

You can install the packages yourself, but you should prefere the latest stable packages for your architecture.

Install all packages:

.# emerge openssl automake mono pkgconfig

If you don't need X-Window support for mono:

.# USE="-X" emerge openssl automake mono pkgconfig

If you want to install the latest, but unstable packages you could simply use:

.# ACCEPT_KEYWORDS="~x86" emerge openssl automake mono pkgconfig

After you have installed all the required packages, you should create a non-privilidged user under which Hula will run.

.# useradd hula && groupadd hula

Download, compile and install the source code

The latest stable source code tarball's are available here. For example:

.# cd /tmp
.# wget http://live.hula-project.org:8080/tarballs/hula-r1645.tgz
.# tar -xzvf hula-*.tgz
.# cd hula*

Now you have to configure and compile the source code.

.# ./autogen.sh --with-user=hula --prefix=/usr --mandir=/usr/share/man --localstatedir=/var
.# make && make install

You have now installed Hula and go on to configure it.

Testing Hula

Change the owner of the hula directories to your hula user (here: hula).

.# chown -R hula /var/netmail /var/mdb

Now, you can test your Hula setup with your first domain.

.# hulasetup --domain=your.domain.com
Note: Make sure that the hula user has write permission on all directories. It maybe helps, when you change the permission for the first run and then reset them.

Start the server and look for errors in the startup process.

.# hulamanager

The webadministration and webmail interface are available now.

Login with username: admin and password: hula

ALso i found out if you dont have ssl setup in apache you cant login to the admin control panel with port 449 so if you want to login with out ssl you can use http://your.ip.adress:89 to be continued...

Note: Maybe some one can help me with the screenshots, because there is a lot to do. But Hula is a greate project and needs some support.

Antivirus & Antispam

Antispam with SpamAssassin

Hula supports SpamAssassin as antispam solution. So, the best way is to install the required packages.

.# emerge spamassassin

You have to take care, that you install no old package, because you often need the newest rules and protection functions. Maybe you should do a:

.# emerge --sync

before.

After the the installation you have to add spamd to the boot process.

.# rc-update add spamd default

Maybe you should reboot your system.

The default port for SpamAssassin is 783, but you can change this to any other port you want.


The Hula Wiki gives you a good overview about protecting your system from spam and how you can configure it. You should also configure SpamAssassin you get a higher security. Maybe it's possible in the future to get user-based spamrules, but for this, you have to extend Hula.

Antivirus with ClamAV

You can use a lot of different antivirus solutions with Hula. We will use the opensource solution ClamAV. For the Installation you have to do a simple:

.# emerge clamav

After the installation you should add clamd to the boot process by doing:

.# rc-update add clamav default

Now, you are reading to configure clamd to fit your needs.

Weblinks

Retrieved from "http://www.gentoo-wiki.info/HOWTO_Install_Hula_Mailserver"

Last modified: Thu, 04 Sep 2008 05:49:00 +0000 Hits: 7,233