amavisd-new with AVG 8.5 free Edition for Linux

I’m evaluating the AVG 8.5 free Edition for Linux on Centos 5. It’s fairly easy step to setup. Just download the installer, install, update virus definition database.tweak some avgtcpd’s config and voila!! it’s running smoothly. Here’s the step everyone might want to know.

Download avg 8.5 installer

$ wget -t0 -c http://download.avgfree.com/filedir/inst/avg85flx-r863-a3205.i386.rpm

Install

$ sudo rpm -ivh avg85flx-r863-a3205.i386.rpm

start the service (in this case i was using init.d script)

$ sudo /etc/init.d/avgd start

Verify if avgtcpd is running

$ sudo netstat -pltn | grep avgtcpd
tcp        0      0 127.0.0.1:54321             0.0.0.0:*                   LISTEN      10839/avgtcpd
tcp        0      0 127.0.0.1:54322             0.0.0.0:*                   LISTEN      10839/avgtcpd

Update virus definition database

$ sudo avgupdate


By default avgtcpd limiting tcpd listener, we need to raise maximum connection avgtcpd can handle.
here’s the default setting:

$ sudo avgcfgctl Default.tcpd.avg.limiter_start
AVG command line avgcfgctl
Copyright (c) 2010 AVG Technologies CZ

Default.tcpd.avg.limiter_start=20
$ sudo avgcfgctl Default.tcpd.avg.limiter_stop
AVG command line avgcfgctl
Copyright (c) 2010 AVG Technologies CZ

Default.tcpd.avg.limiter_stop=25

Set to reasonable value for the server.

$ sudo avgcfgctl -w Default.setup.features.antispam=false
$ sudo avgcfgctl -w Default.tcpd.avg.limiter_start=150
$ sudo avgcfgctl -w Default.tcpd.avg.limiter_stop=1024
$ sudo avgcfgctl -w Default.tcpd.avg.timeout=5000

Restart tcpd

$ sudo avgctl --restart=tcpd

Now in amavisd-new part, edit amavisd-new configuration, add this av scanner setting for AVG.

['AVG Anti-Virus',
   &ask_daemon, ["SCAN {}n", '127.0.0.1:54322'],
   qr/^200/, qr/^403/, qr/^403 .*?: ([^rn]+)/ ],

Restart amavisd-new service

$ sudo /etc/init.d/amavisd restart

amavisd-new with avg is ready!

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *