Mail::Toaster::Setup Install

- Step 1: Get Perl happy.
- Step 2: Install MATT::Bundle.
- Step 3: Install Mail::Toaster
- Step 4: Configure config files
- Step 5: Update your ports tree.
- Step 6: Install a few things
- Step 7: Install Qmail
- Step 8: (web based email)
- Step 9: Courier-IMAP
- Step 10: Add cron entries
- Step 11: Install even more stuff
- Step 12: Continue with Configuration.

## Step 1: Get Perl happy.

Certain features (like spam filtering) require perl 5.6.1 or higher to function fully. If perl -v reflects anything smaller than 5.6.1, do the following:

            cd /usr/ports/lang/perl5
            make install clean
            use.perl port

We'll also need to CPAN working for installing perl modules so make sure it's configured. If the following command doesn't give you a prompt, then you'll be prompted to configure.

            perl -MCPAN -e shell
            exit

## Step 2: Install MATT::Bundle.

http://www.tnpi.biz/computing/perl/MATT-Bundle/MATT-Bundle.tar.gz

## Step 3: Install Mail::Toaster

http://www.tnpi.biz/internet/mail/toaster/Mail-Toaster.tar.gz

            perl Makefile.PL
            make test
            make install
            make conf  (newconf for new installs)
            make cgi   (installs the index.cgi)
            rehash
            toaster_setup.pl -s pre

See http://mail.cadillac.net for an example of index.cgi.

## Step 4: Configure config files

            vi /usr/local/etc/toaster.conf
            vi /usr/local/etc/toaster-watcher.conf

## Step 5: Update your ports tree.

            toaster_setup.pl -s ports

## Step 6: Install a few things

            toaster_setup.pl -s mysql
            toaster_setup.pl -s [ apache | apache2 ]
            toaster_setup.pl -s ucspi
            toaster_setup.pl -s ezmlm
            toaster_setup.pl -s vpopmail
            toaster_setup.pl -s qmailadmin

## Step 7: Install Qmail

With this patch: http://www.tnpi.biz/internet/mail/toaster/patches/index.shtml

            toaster_setup.pl -s qmail
            cd /usr/local/src/mail/qmail-1.03
            make cert

## Step 8: (web based email)

            toaster_setup.pl -s squirrelmail
            toaster_setup.pl -s sqwebmail

## Step 9: Courier-IMAP

            toaster_setup.pl -s courier
            cd /usr/local/etc/courier-imap
            vi pop3d.cnf imapd.cnf quotawarnmsg

## Step 10: Add cron entries

            crontab -u root -e

9-59/10 * * * * /usr/local/vpopmail/bin/clearopensmtp 2>&1 > /dev/null

40 * * * * /usr/local/share/sqwebmail/cleancache.pl 2>&1 > /dev/null

## Step 11: Install even more stuff

            toaster_setup.pl -s filter
            toaster_setup.pl -s supervise
            toaster_setup.pl -s maillogs

## Step 12: Continue with Configuration.

See the file CONFIGURE or visit this URL: http://www.tnpi.biz/internet/mail/toaster/config.shtml Skipping this step is guaranteed to make you unhappy. :)