Elyograg.org System Documentation
From Edition
New /etc/apt/sources.list
deb http://debian.elyograg.org/debian/ lenny main contrib non-free deb http://mirrors.xmission.com/debian/ lenny main contrib non-free deb-src http://mirrors.xmission.com/debian/ lenny main contrib non-free deb http://security.debian.org/ lenny/updates main contrib non-free deb-src http://security.debian.org/ lenny/updates main contrib non-free #deb http://www.backports.org/debian/ lenny-backports main contrib non-free #deb-src http://www.backports.org/debian/ lenny-backports main contrib non-free
Install some basic system necessities.
apt-get update apt-get install openssh-server rsync denyhosts dselect # In /etc/denyhosts.conf: # Uncomment the SYNC_SERVER parameter. # Set appropriate PURGE_DENY value - I use 3w # Change SMTP_FROM and SMTP_SUBJECT parameters as appropriate. # Configure appropriate /var/lib/denyhosts/allowed-hosts file. # Restart denyhosts. /etc/init.d/denyhosts restart
Install ancillary email packages and create special users/groups.
apt-get update apt-get install rsync denyhosts dselect apt-get install clamav clamav-daemon amavisd-new spamassassin apt-get install lha arj unrar zoo nomarch lzop cabextract apt-get install dspam razor pyzor dovecot-imapd dovecot-pop3d addgroup --system --gid 902 vmail adduser --system --group --uid 901 vmail addgroup --system --gid 904 vacation adduser --system --group --uid 903 vacation usermod -a -G daemon vmail usermod -a -G clamav amavis usermod -a -G amavis clamav usermod -a -G mail dovecot
Retrieve Postfix source package - you can use a directory other than /usr/src if you wish, but I do recommend making a new subdirectory to hold everything.
apt-get build-dep postfix apt-get install dh-buildinfo dh-make dh-make-perl sudo dpatch patchutils mkdir /usr/src/postfix cd /usr/src/postfix apt-get source postfix
Note postfix version downloaded by above steps, retrieve and apply matching VDA patch.
cd /usr/src/postfix wget "http://vda.sourceforge.net/VDA/postfix-2.5.5-vda-ng.patch.gz" zcat postfix-2.5.5-vda-ng.patch.gz | patch -p0 # If appropriate, download and apply the 64-bit patch too. # The 64-bit patch depends on applying the regular patch first. # I did not need this step, as I am not running a 64 bit CPU or kernel. wget "http://vda.sourceforge.net/VDA/postfix-2.5.5-vda-ng-64bit.patch.gz" zcat postfix-2.5.5-vda-ng-64bit.patch.gz | patch -p0
Change to the extracted postfix source directory, and build the packages.
cd /usr/src/postfix/postfix-2.5.5 debian/rules binary
Install apache2, mod-php5, and supporting bits.
apt-get install libapache2-mod-php5 php-pear php5-mysql php5-mcrypt apt-get install php5-gd ttf-bitstream-vera ttf-freefont php5-imagick
Reconfigure the debconf package. Leave the interface set to "Dialog" and set the ignore priority to medium.
dpkg-reconfigure debconf
Install the MySQL server. It will ask you for a root password and whether or not to support connectiosn from old clients, to which you'll likely want to say no.
apt-get install mysql-server
Purge exim4, then install the main postfix package plus -pcre and -mysql support. It will ask a bunch of questions, appropriate responses noted below.
cd /usr/src/postfix apt-get install openssl-blacklist ssl-cert resolvonf dpkg --force-depends --purge exim4-daemon-light exim4-config exim4 exim4-base dpkg -i postfix_2.5.5-1.1_i386.deb postfix-pcre_2.5.5-1.1_i386.deb postfix-mysql_2.5.5-1.1_i386.deb # Answers to debconf questions: # Internet Site # full machine DNS name # valid email address # defaults - full machine name, localhost.localdomain, localhost # Don't force synchronous updates

