Now that you have the two essential pieces of software we need to extract the files, build and install them.

Procmail –

cd /var/tmp

tar zxvf procmail-3.11pre7.tar.gz

cd procmail-3.11pre7/src

Edit the authenticate.c file and uncomment the following line:

/*#define MAILSPOOLHOME "/.mail" /* watch the leading / */

The first two characters on the line need to be removed, it should look like (below) when done.

#define MAILSPOOLHOME "/.mail" /* watch the leading / */

cd ..

make

(as the root user) make install-suid

ln –s /usr/bin/procmail /usr/local/bin/procmail

Sendmail –

cd /var/tmp

tar zxvf sendmail.8.9.1.tar.gz

cd sendmail.8.9.1

make

(as the root user) make install

Now a "sendmail.cf" file must me generated for the host, the one that came with the system is not adequate for our needs (we need to use sendmail as the delivery agent to get the mail spooled into the users' home directory).

cd cf/cf and edit the file called generic-bsd4.4.mc

add the following "Features"

FEATURE(local_procmail)

FEATURE(relay_entire_domain)

FEATURE(relay_local_from)

Remove the following line:

MAILER(local)dnl

make generic-bsd4.4.cf

cp generic-bsd4.4.cf /etc/sendmail.cf

vi /etc/sendmail.cw, If this file does not already exist, create it, and for each "name" your host has put and entry for that hostname.