Release
 
Part 2 - Installing Qmail Itself

Now that you've downloaded all the needed packages, we can start the install. At this point you should have a qmailrocks source directory located at /downloads/qmailrocks. If you don't, go back to step 1. This step involves the setup of the very heart of you new qmail server. In this step, we'll install qmail itself, ucspi-tcp and daemontools. These 3 packages are the core of the qmail server and will be the foundation on which we build everything else. So don't screw it up!

I've created a handy little shell script that takes care of the first portion of getting qmail, ucspi-tcp and daemontools intalled. Simply run this script from the command prompt of your Solaris box and you should be golden. The script will tell you what it's doing along the way.

/downloads/qmailrocks/scripts/install/qmr_install_solaris-s1.script

If all goes well, you should have all the needed user and groups created as well as all the needed directories, permissions and ownership settings needed for the installation of qmail, ucspi-tcp and daemontools

Next, we apply 3 patches to qmail before we compile it. I've included a handy little script to apply all 3 patches at once. The 3 patches we are going to apply are: 1) The standard qmail-1.03 patch 2) The qmailqueue patch to enable the use of qmail--scanner later in this installation and 3) The auth-jms1.4a patch to enable SMTP authentication.

However, when using Solaris it is necessary to first install the GNU "diffutils" package so that you can use the "gpatch" utilty instead of the typical "patch" utility. Lucky for you, I've included the "diffutils" package in the qmailrocks tarball...

pkgadd -d /downloads/qmailrocks/tools/diffutils-2.8.1-sol9-sparc-local

Once you've got "diffutils" installed, let's patch qmail...

/downloads/qmailrocks/scripts/util/qmail_patches.script   (click here to view this script)

Now we build Qmail...

cd /usr/src/qmail/qmail-1.03

make man && make setup check

./config-fast your_fqdn_hostname (ex: ./config-fast mail.mydomain.com)

If there are no errors, Qmail has been built successfully!

Now we build ucspi-tcp...

cd /usr/src/qmail/ucspi-tcp-0.88/

make && make setup check

If you don't get any errors, that's it for ucspi-tcp!

Now we build the daemontools....

cd /package/admin/daemontools-0.76

package/install

If no errors are reported, you've successfully compiled the daemontools package!

vi /etc/inittab

replace

SV:123456:respawn:/command/svscanboot

with

SV:123456:respawn:/command/svscanboot </dev/null >/var/log/svscan 2>&1

Now reboot your server:

reboot

If you run take a look at the running processes on your server once it comes back up, you should see the daemon "svscanboot" running. You can usually do this with a "ps -ef" command. Here's a screenshot of it. If you see "svscanboot" running, you're in good shape.

OK, Qmail is almost totally installed but we're going to pause right here and install a bunch of handy tools and features that will make Qmail pretty and fun! After that, we'll make some final changes to qmail and then crank it up!

Proceed to Part 3


 

Color Coded Qmail Installation Key
 
Regular Black Text 
 Qmail installation notes and summaries by the author. Me talking.
 
Bold Black Text 
 Commands to be run by you, the installer.
 
Bold Maroon Text 
 Special notes for Redhat 9 users.
 
Bold Red Text 
 Vital and/or critical information.
 
Regular/Bold Purple text 
 Denotes helpful tips and hints or hyperlinks.
 
Regular Orange Text 
 Command line output.
Cp

Regular green text 

 Denotes the contents of a file or script.
home | about | the installation | scripts & utilities | faq | contact | links | donations | journal | mailing list | list archive | qmr forum
modified
This mirror last modified: Thursday, August 9th, 2012 15:59:28 CEST
 
The Rocks Project