These classnotes are depreciated. As of 2005, I no longer teach the classes. Notes will remain online for legacy purposes

UNIX03/Install Components And Setup Users

Classnotes | UNIX03 | RecentChanges | Preferences

The first thing we want to do is install everything we need. If we were installing from source, we would need to obtain the files from the following locations (and all of their dependencies):

However, we are lucky enough to be using Debian, which means that everything (except for DCC) is available through apt-get

 # apt-get install postfix
 # apt-get install amavisd-new
 # apt-get install spamassassin
 # apt-get install razor

If we were using a Red Hat based system, then we would also be able to find RPMs for each of these packages (either on their respective web-sites or at places like If you are using UnitedLinux, then everything except for amavisd-new and DCC can be found on the CDs.

For DCC, we will still need to install from source, so either browse to their website and download the source file, or simply issue an:

 # wget

You build DCC in the standard way (remember "configure, make, install"):

 # tar -zxvf dcc-dccd.tar.Z
 # cd dcc-dccd-1.1.36
 # ./configure 
 # make 
 # make install 

Make sure udp port 6277 is allowed out from this computer if you are running a firewall, and issue the following command to verify that DCC can run correctly

 # /usr/local/bin/cdcc 'info' 

If everything is working, you should see a bunch of lines like:, - RTT+0 ms anon 
 #,- WEiAPG? server-ID 1072
 # 100% of 3 requests ok 1687.64+0 ms RTT 113 ms queue wait
 #,- Rhyolite server-ID 101
 # 100% of 2 requests ok 755.52+0 ms RTT 50 ms queue wait

Setup Users

Since apt-get already setup most of the users we need, all we are doing now is verifying that it did, and adding those that it did not. If we had to install from source, or even possibly from an RPM that did not take care of these things for us, we would have to add these by hand.

You should have a user for Postfix and Amavisd-New, as well as ones for the two "spam" and "not-spam" Bayesian filter accounts. In other words, we should have something roughly like this in our /etc/passwd file

 postfix:x:102:104:Postfix Mailsystem:/var/spool/postfix:/bin/false
 amavis:x:106:1003:AMaViS system user,,,:/var/lib/amavis:/bin/sh
 spam:x:106:1004:Spam Bayes Learner:/nonexistent:/bin/false
 notspam:x:107:1005:Not Spam Bayes Learner:/nonexistent:/bin/false

Likewise, each of these will be running with their own associated groups, so our /etc/group file should contain something like this


We will be running Amavisd-New in a chrooted environment for extra security, so we must ensure that these accounts and groups exist.

Classnotes | UNIX03 | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited September 5, 2003 11:50 pm (diff)
(C) Copyright 2003 Samuel Hart
Creative Commons License
This work is licensed under a Creative Commons License.