Quick Setup for Maia MailGuard





  Ubuntu's "server" install makes a great and standard platform for building many very nice open source tools. This page outlines the process for building the Maia Mailguard spam and virus filter on Ubuntu Linux.
 
  First, you will need the Ubuntu install CD. Quick download and setup instructions are [here]. Burn it to a CD. Boot the CD on any Intel based PC and install the 'server'.
 
  

Installing the packages Maia depends on

 
  Now we'll use wget to fetch a shell script that will load all of the packages Maia depends on. If you are not logged in as root, do so now and make sure that you are in root's home directory. Then issue the following command:

$ wget http://www.dpsims.com/~dpsims/maia/setup_dapper_for_maia.sh

(or view the script here: http://www.dpsims.com/~dpsims/maia/setup_dapper_for_maia_sh.txt)

This command will result in a script called setup_dapper_for_maia.sh being downloaded to your root directory. Next we'll make it executable:

$ chmod 755 setup_dapper_for_maia.sh

and execute it:

$ ./setup_dapper_for_maia.sh

At this point, the basic environment is almost completely set up with all the prerequisites. There are a few items noted as comments at the end of the script that need to be installed from CPAN. (perl -MCPAN -e shell) Also, I normally install postfix by hand since there are some questions to answer. Just do a "/usr/bin/apt-get --yes install postfix-pcre" and select "no configuration" and we'll configure it by hand later.
  

Installing Maia and Amavisd

 
  Now we'll use wget to fetch a shell script that will fetch and install Maia and Amavisd. If you are not logged in as root, do so now and make sure that you are in root's home directory. Then issue the following command:

$ wget http://www.dpsims.com/~dpsims/maia/setup_maia_1_0_2.sh

(or view the script here: http://www.dpsims.com/~dpsims/maia/setup_maia_1_0_2_sh.txt)

This command will result in a script called setup_maia_1_0_2.sh being downloaded to your root directory. Next we'll make it executable:

$ chmod 755 setup_maia_1_0_2.sh

and execute it:

$ ./setup_maia_1_0_2.sh

At this point, Maia and Amavis are almost completely set up with all the prerequisites.
  

Extra files and scripts

 
  Now we'll use wget to fetch some additional useful files. Issue the commands

$ wget http://www.dpsims.com/~dpsims/maia/amavisd.conf

(or view the script here: http://www.dpsims.com/~dpsims/maia/amavisd.conf)

$ wget http://www.dpsims.com/~dpsims/maia/amavisd_init.d_script.sh

(or view the script here: http://www.dpsims.com/~dpsims/maia/amavisd_init.d_script.sh)

$ wget http://www.dpsims.com/~dpsims/maia/local.cf

(or view the script here: http://www.dpsims.com/~dpsims/maia/local.cf)

$ wget http://www.dpsims.com/~dpsims/maia/postfix.tgz

This last one will fetch the /etc/postfix directory from a working server that you can use as a base to tailor your postfix configuration. You have the benefit of knowing that it is from an existing working Maia Mailguard. If you use the instructions at http://www.maiamailguard.com/maia/wiki/Install/ as you go along, you'll have Maia running in no time!

David Sims
Houston, Texas USA