Building MailWasher Server on unix
From MailWasher Server
Important
Most Linux and Solaris users will find it more convenient to download one of the pre-built packages. This page explains what you'll need if you want to develop MailWasher Server or compile it for another platform.
What you'll need
To compile MailWasher Server from source you need the following three things -
- A recent version of g++, the C++ compiler in the GNU compiler collection. We recommend that you use a 4.1 or later release. 2.95, still the default compiler distributed with some distributions, will unfortunately not work; you'll need 3.4 on Solaris as 3.3 has some bugs on that platform. We aim for full compliance with the ISO C++ standard, so other C++ compilers may or may not work.
- Oracle Berkeley DB 4.6 or later, a free download. 4.3 and later will also work but we strongly recommend you use the current version instead. We currently use version 4.6.21.
- An STL implementation. libstdc++, which comes with the GNU compiler, should work, but has not been extensively tested; we recommend STLport, a free download. We currently use version 5.1.5. This is recommended, but not essential.
- plus the source itself, which you can checkout from the SVN repository or download from the project files page.
You also need GNU tar plus Info-ZIP's zip and unzipsfx. These are present on nearly all Linux distributions and many other Unix-like platforms, but may have to be installed on Solaris.
Quick start
You should be able to build MailWasher Server straight from CVS using the usual autotools-style build system without any problems once you have GCC installed and you've followed the installation instructions for Berkeley DB and STLport (both of which are supplied in their source packages).
Building MailWasher Server
- Check out the source from SVN, or download and extract the source archives from the project files page.
- In the trunk directory, run './autogen.sh'.
- In the trunk directory, run './configure'. This can take a number of parameters: The location of the Berkeley DB libraries ( these are statically linked, so the libdb.a archive is required ) is defined using the --with-db= parameter, and if the optional LDAP support is included, use the --with-ldap parameter ( default is /usr ) to activate.
- In the trunk directory, run 'make'.
- An executable installer called 'mwserver-installer.bin' will be created in the 'installers/unix' subdirectory.
- In the trunk directory, running 'make install' as root will install the software
- Further configuration is required by pointing your web browser at http://hostname:4044
- Software now needs to be integrated into your mail server. Actions differ for sendmail and qmail
For more details
The INSTALL file included in the source distribution has more details, including how to build RPMs, what the configure options are, and more details on the recommended library and compiler versions.
