Recipe for building an OpenBSD Mail Toaster

Started by hap0, April 14, 2005, 05:59:44 PM

Previous topic - Next topic

hap0

Here are the initial steps I took as best I can recall.
Note this document will be evolving as I go. So please feel free
to comment and help out if you can. On behalf of everyone who
will find this useful: Thank you!

The version of OpenBSD I used for this installation is 3.6

First download the minimal boot CD from a mirror listed at the following URL:

http://www.openbsd.org/ftp.html" target="_blank">http://www.openbsd.org/ftp.html


In my case the filename turned out to be cd36.iso (4.6MB), and it was located in:

/pub/OpenBSD/3.6/i386 on the FTP server that I chose.

I followed the instructions for installing OpenBSD located here:

http://www.openbsd.org/faq/faq4.html" target="_blank">http://www.openbsd.org/faq/faq4.html

My partitioning scheme is as follows:
-bash-3.00$ df -hFilesystem    Size   Used  Avail Capacity  Mounted on/dev/wd0a     489M  31.7M   433M     7%    //dev/wd0d     2.0G   4.1M   1.9G     0%    /home/dev/wd0e    1006M   188M   767M    20%    /usr/dev/wd0f    1006M   2.4M   953M     0%    /var/dev/wd0g    1006M   2.0K   956M     0%    /var/qmail/dev/wd0h     489M   5.7M   459M     1%    /var/www-bash-3.00$ cat /etc/fstab/dev/wd0a / ffs rw 1 1/dev/wd0d /home ffs rw,nodev,nosuid 1 2/dev/wd0e /usr ffs rw,nodev 1 2/dev/wd0f /var ffs rw,nodev,nosuid 1 2/dev/wd0g /var/qmail ffs rw,nodev,nosuid 1 2/dev/wd0h /var/www ffs rw,nodev,nosuid 1 2-bash-3.00$


Begin with following instructions from here:
http://www.tnpi.biz/internet/mail/toaster/install.shtml" target="_blank">http://www.tnpi.biz/internet/mail/toaster/install.shtml

Perl is already installed on my system:

-bash-3.00$ perl -v
This is perl, v5.8.5 built for i386-openbsd

"Step 2: Install Mail::Toaster

Download the latest released Mail::Toaster.

Once downloaded, install it much like you would any other perl module.

   * perl Makefile.PL
   * make install
   * make newconf (overwrites installed .conf files)
   * make cgi"
http://www.tnpi.biz/internet/mail/toaster/install/toaster.html" target="_blank">        http://www.tnpi.biz/internet/mail/toaster/install/toaster.ht ml

My steps (note I had to install wget first):

sudo pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/3.6/packages/i386/wget-1.8.2.tgz" target="_blank">    ftp://ftp.openbsd.org/pub/OpenBSD/3.6/packages/i386/wget-1.8 .2.tgz

wget -c http://www.tnpi.biz/internet/mail/toaster/Mail-Toaster.tar.gz" target="_blank">        http://www.tnpi.biz/internet/mail/toaster/Mail-Toaster.tar.g z
tar zxvf Mail-Toaster.tar.gz
cd Mail-Toaster
cd Mail-Toaster-4.05/
perl Makefile.PL
sudo make install
sudo make newconf
sudo make cgi

This next part is where I am currently stuck:

"Step 3. Install Ports

On systems that have a port or package management system, it is often quite helpful to to use them. Many applications can be build from ports simply by setting their version to "port" in toaster-watcher.conf.

Support is included for FreeBSD and Darwin ports. Support for other port mechanisms can be added by coding a Platform.pm module that has methods for updating the ports tree and installing software packages.

FreeBSD

FreeBSD ports are an optional install when you install FreeBSD and you should choose to install them.

Before beginning to build all the applications your Mail::Toaster needs, you should update your ports tree. You can do this by following the instructions in the excellent FreeBSD handbook, or use the highly automated method built into Mail::Toaster.

   * toaster_setup.pl -s ports"
http://www.tnpi.biz/internet/mail/toaster/install/ports.html" target="_blank">       http://www.tnpi.biz/internet/mail/toaster/install/ports.html


04. edit config files
05. install programs
06. install qmail
07. install mail retrieval programs
08. install filtering
09. install logging
10. install cron entries