Antivirus performance, AVG

Michael Huntley michael at
Fri May 23 07:00:28 IST 2014

I got AVG to work.

I changed this line in virus.scanners.conf:
avg             /usr/lib/MailScanner/avg-wrapper        /opt/avg/av

Save a copy just-in-case someone blows the dust off this project and 
releases an update......

Then I edited the wrapper:

#Add the t option to delete infected object.  MailScanner doesn't remove 
it otherwise...
#probably a code issue.  Don't care, throw the beastie away.

if [ "x$1" = "x-IsItInstalled" ]; then
   [ -x ${PackageDir}/bin/$Prog ] && exit 0
   exit 1

# Force output into English
export LANG
# update AVGs library reference

#Needed For Proper Use Of New AVG
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/avg/av/lib
export AVGINSTDIR=/opt/avg/av
export HOME=/opt/avg/av

exec $PackageDir/bin/$Prog $ScanOptions "$@" 2>&1
exit 1


Save a backup of the wrapper in case (highly UNLIKELY at this time) 
MailScanner has an update.  HA!



On 5/22/2014 4:51 AM, Paul Welsh wrote:
> Thanks for the hints, Glenn.
> I have no time either so have abandoned AVG.
> Hopefully someone will read this before trying it and save themselves 
> the bother.
> On 22 May 2014 12:00, <mailscanner-request at 
> <mailto:mailscanner-request at>> wrote:
>     ---------- Forwarded message ----------
>     From: Glenn Steen <glenn.steen at
>     <mailto:glenn.steen at>>
>     To: MailScanner discussion <mailscanner at
>     <mailto:mailscanner at>>
>     Cc:
>     Date: Thu, 22 May 2014 10:58:35 +0200
>     Subject: Re: Antivirus performance, AVG
>     Hi Paul,
>     Seems like something is up with the patterns (in MS) for avg, so
>     one of the maintainers really should look through that part of the
>     code. Back in the days, Jules would be on this;-).
>     The actual perl (in the wrappers and in is ...
>     voluminous... but perhaps not downright obtuse (since I think I
>     know how it works:-)... There is however a fair bit of massaging
>     of the output from the scanner going on in ProcessAvgOutput (in
>, so ... If you can generate the output and play
>     with the REs as from that function, maybe you'll find the solution
>     yourself;-).
>     Alas, I myself has next to no time to put into any projects
>     anymore, so can't be of more help.
>     Cheers!
>     -- 
>     -- Glenn

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the MailScanner mailing list