Set Up Ubuntu-Server 6.10 As A Firewall/Gateway For Your Small Business Environment - Page 11

On this page

  1. DONE!
  2. Done!

Next do:

cd /root

Version numbers in the next commands apply to the latest stable source at the time of writing this article. Adjust as needed.


Like before, pick a mirror close to you.

groupadd clamav
useradd -g clamav -s /bin/false -c "Clam Antivirus" clamav
tar -zxvf clamav-0.88.7.tar.gz
cd clamav-0.88.7
./configure --sysconfdir=/etc
make install
touch /var/log/freshclam.log
chmod 600 /var/log/freshclam.log
chown clamav /var/log/freshclam.log

Now edit /etc/clamd.conf. Comment out "EXAMPLE" (without quotes). Next do the same in/etc/freshclam.conf.

Next do:


Now make this a cron job and run it every hour. Preferably not on the hour or anywhere near, as the clamav servers will be flooded when everybody does so. Choose a smart time for this job. The service is absolutely FREE! Let's keep it that way.

/etc/init.d/mailscanner restart

Now I want to do some perl jobs. If you actually use the ancient hardware I did to make this tuto, be advised that it is going to take some time.

Note that you can do without this, for starters. You may wish to schedule this job anywhere soon. If you choose so, you are


Alternatively go all the way right now and do:

perl -MCPAN -e shell

Accept all defaults, except for the question where you can answer "UNINST=1" (without the quotes). I think it is best to actually do UNINST=1.

Now do:

install ExtUtils::CBuilder
reload cpan

The "reload cpan" command should be given right after each step in the cpan shell. Better safe than sorry. I only mention this once.

install ExtUtils::MakeMaker

As a result of the next commands you will be asked some questions. Just hit "enter" in all cases.

install Bundle::CPAN
install Bundle::LWP
install Mail::ClamAV

Now leave the cpan shell:

/etc/init.d/mailscanner restart

Now clean your /root directory. That's where all the downloads went.

Warning!!! Don't install Mail::SpamAssassin from cpan alongside the ubuntu spamassassin package as it will breake your system. No more rules du jour, and the rules, my friends, that's what it is mostly about!

If you really want Mail::SpamAssassin from cpan, you will have to purge your spamassassin package and compile, instal and configure it from the latest stable source, which at the time of writing is version 3.1.7.

Samba is installed. As every setup of Samba is unique, I can't help you out here. Don't know how to do it? This is a good starting point.


Share this page:

0 Comment(s)