Email Server/Amavisd-new
Views:
Part of the Email Server documentation
Amavisd-new Dependancies: ~~~~~~~~~~~~~~~~~~~~~~~~~ Amavis requires some pretty unique and specialist pieces of software in order to blat lots of spam. Make some coffee now, and order pizza. this might take a while.... You will need to check the Makefiles manually (where you don't have a configure script to run) They should be fairly straight-forward to edit, with just paths or system types needing to be changed They all have comments where appropriate, so don't be afraid # #Compress # cd /usr/local/src # mkdir compress-4.0.1 # cd compress-4.0.1 # wget ftp://ftp.warwick.ac.uk/pub/compression/compress-4.0.1.tar.gz # tar zxvf compress-4.0.1.tar.gz # cc -O -DUSERMEM=usermem -o compress compress.c # cp -p compress /usr/local/bin/ # cd /usr/local/bin # ln -s compress uncompress # ln -s compress zcat # #7 Zip # yum install nasm # cd /usr/local/src # wget http://switch.dl.sourceforge.net/sourceforge/p7zip/p7zip_4.58_src_all.tar.bz2 # tar jxvf p7zip_4.58_src_all.tar.bz2 # cd p7zip_4.57 # cp makefile.linux_x86_asm_gcc_4.X makefile.machine # make all # make install # #unrar # cd /usr/local/src # wget http://www.rarlab.com/rar/unrarsrc-3.8.2.tar.gz # tar zxvf unrarsrc-3.8.2.tar.gz # cd unrar # cp makefile.unix Makefile # make # cp unrar /usr/local/bin/ # #unzoo # yum install eltutils openlib-mstflint # yum install elfutils # yum install splint # cd /usr/bin/ # ln -s splint lint # ls -la lint # cd /usr/local/src/ # mkdir zoo # cd zoo # wget ftp://ftp.kiarchive.ru/pub/unix/arcers/zoo-2.10pl1.tar.gz # tar zxvf zoo-2.10pl1.tar.gz # make lint_generic # gcc unzoo.c # cp unzoo /usr/local/bin # #ripOLE # cd /usr/local/src # wget http://www.pldaniels.com/ripole/ripole-0.2.0.tar.gz # tar zxvf ripole-0.2.0.tar.gz # cd ripole-0.2.0 # make # cp ripole /usr/local/bin/ # #TNEF # cd /usr/local/src # wget http://dfn.dl.sourceforge.net/sourceforge/tnef/tnef-1.4.3.tar.gz # tar zxvf tnef-1.4.3.tar.gz # cd tnef-1.4.3 # ./configure # make # make check # make install # #pax # cd /usr/local/src # wget http://heanet.dl.sourceforge.net/sourceforge/heirloom/heirloom-070715.tar.bz2 # tar jxvf heirloom-070715.tar.bz2 # cd heirloom-070715 # make makefiles # cd cpio/ # make pax # cp pax /usr/local/bin/pax # #cabextract # cd /usr/local/src # wget http://www.cabextract.org.uk/cabextract-1.2.tar.gz # tar zxvf cabextract-1.2.tar.gz # cd cabextract-1.2 # ./configure # make # make install DSPAM: ~~~~~~ # cd /usr/local/src # wget http://dspam.nuclearelephant.com/sources/dspam-3.8.0.tar.gz # tar zxvf dspam-3.8.0.tar.gz # cd dspam-3.8.0 # ./configure --enable-clamav --enable-long-usernames --enable-virtual-users # make # make install Razor: ~~~~~~ # cd /usr/local/src # wget http://switch.dl.sourceforge.net/sourceforge/razor/razor-agents-sdk-2.07.tar.bz2 # tar jxvf razor-agents-sdk-2.07.tar.bz2 # chown -R root:root razor-agents-sdk-2.07 # chmod -R u-s,g-s,o-rwx razor-agents-sdk-2.07 # cd razor-agents-sdk-2.07 # perl Makefile.PL # make # make test # make install # cd /usr/local/src # wget http://switch.dl.sourceforge.net/sourceforge/razor/razor-agents-2.84.tar.bz2 # tar jxvf razor-agents-2.84.tar.bz2 # chown -R root:root razor-agents-2.84 # chmod -R u-s,g-s,o-rwx razor-agents-2.84 # cd razor-agents-2.84 # perl Makefile.PL # make # make test # make install Pyzor: ~~~~~~ # yum install gdbm # cd /usr/local/src # wget http://mesh.dl.sourceforge.net/sourceforge/pyzor/pyzor-0.4.0.tar.bz2 # tar jxvf pyzor-0.4.0.tar.bz2 # cd pyzor-0.4.0 # python setup.py build # python setup.py install dcc: ~~~~ # cd /usr/local/src # wget http://www.rhyolite.com/anti-spam/dcc/source/dcc.tar.Z # tar zxvf dcc.tar.Z # chmod -R u-s,g-s,o-rwx dcc-1.3.90 # chown -R root:root dcc-1.3.90 # cd dcc-1.3.90/ # ./configure # make install Amavisd-new: ~~~~~~~~~~~~ Make sure you have installed the Amavis Dependancies, above, and ClamAv, all of the Perl stuff and SpamAssassin # mkdir /var/lib/amavis # useradd -s /sbin/nologin -rmd /var/lib/amavis amavis # chmod -R 0750 /var/lib/amavis # cd /usr/local/src # wget http://www.ijs.si/software/amavisd/amavisd-new-2.5.4.tar.gz # tar zxvf amavisd-new-2.5.4.tar.gz # cd amavisd-new-2.5.4 # cp amavisd /usr/local/sbin/ # chown root /usr/local/sbin/amavisd # chmod 755 /usr/local/sbin/amavisd # mkdir /var/lib/amavis/tmp # chown amavis:amavis /var/lib/amavis/tmp # mkdir /var/lib/amavis/db # chown amavis:amavis /var/lib/amavis/db Copy the sample condfiguration that came with the source code, or the one provided with this documentation, to /etc/amavisd.conf Check that the settings in /etc/amavisd.conf are what you want and secure the file # chown root:amavis /etc/amavisd.conf # chmod 640 /etc/amavisd.conf # cd /usr/local/src # wget http://kent.dl.sourceforge.net/sourceforge/re2c/re2c-0.13.4.tar.gz # tar zxvf re2c-0.13.4.tar.gz # cd re2c-0.13.4 # ./configure # make # make install # sa-update # sa-compile
