#!/bin/sh PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/sbin #This script applies 3 patches to qmail. The first patch is a standard qmail patch. The 2nd patch is the qmailqueue patch #to enable to use of qmail-scanner later in the installation. The 3rd patch is the smtp auth patch to enable smtp #authentication on your new qmail server. I'm not trying to win any awards with this script. Its only purpose #is to reduce the amount of typing for the installer. ;) #So let's go... cd /usr/src/qmail/qmail-1.03 #Apply the standard qmail patch... echo "Applying standard qmail patch..." patch < /downloads/qmailrocks/patches/qmail-103.patch sleep 2 #Next, we will apply the QmailQueue patch... echo "Applying qmailqueue patch..." patch < /downloads/qmailrocks/patches/qmailqueue.patch sleep 2 #Next, we will apply the SMTP authentication patch... echo "Applying SMTP authentication patch..." cp /downloads/qmailrocks/patches/base64.c ./ cp /downloads/qmailrocks/patches/base64.h ./ patch < /downloads/qmailrocks/patches/auth-jms1.4a.patch sleep 2 echo "qmail successfully patched!"