Posts tagged GNU/Linux
How to upgrade ClamAV on Ubuntu (Intrepid)
On October 5th, the Clam Antivirus team announced that ClamAV 0.94.x is now entering its end-of-life phase. What’s worse, versions of ClamAV earlier than 0.95 will no longer be able to receive CVD updates; basically rendering any older versions of ClamAV nearly worthless. This is all supposed to happen by April 2010—soon. You can read more about it here.
Good news though, the upgrade process on Ubuntu is pretty easy:
If you haven’t already done so, enable the ‘backports‘ repo by editing your /etc/apt/sources.list file and uncommenting (or, inserting) the following two lines:
deb-src http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
Then, resynchronize the package index files with the following command:
Next, upgrade ClamAV:
This command will [sometimes] install apparmor as well; I don’t use apparmor so I uninstall it afterwards:
update-rc.d -f apparmor remove
apt-get remove apparmor apparmor-utils
That’s all there is to it!
ClamAV 0.95.2/9874/Thu Oct 8 06:24:12 2009
Alternate SMTP port with iptables
Nowadays, more and more ISPs are blocking outbound port 25 (SMTP) for spam prevention or reduction purposes. This should be of concern to sysadmins who have users scattered across multiple ISPs (such as webhosting services) or corporate sysadmins who maintain e-mail for mobile users, for example. The workaround is to use the mail submission agent (MSA) port, 587. Most ISPs do not block outbound traffic for this port. On GNU/Linux, we can use iptables for this task. With a single command, we can configure any inbound traffic, destined for port 587 traffic to be redirected to port 25:
iptables -t nat -I PREROUTING -p tcp --dport 587 -j REDIRECT --to-port 25