Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[AMaViS-user] Another secondary virus scanner

151 views
Skip to first unread message

Rocco Scappatura

unread,
Sep 30, 2008, 5:20:32 AM9/30/08
to
Hello,

due to high load of my Postfix+Amavisd-new+MySQL boxes, I have had to
disable the primary virus scanner (UVSCAN). I found that UVSCAN is very
CPU expensive so I had no other choice other then disable it. So
Amavisd-new at the moment is using only CLAMAV. If it crash or stops
working for some reason, my mail gateway doesn't deliver email at all.
Since I find CLAMAV an effective virus scanner, I would like a similar
tool (demonized, open source, active project) that I can use as
secondary virus scanner for my Postfix+Amavisd-new+MySQL platform.

TIA,

rocsca


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
AMaVi...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Henrik K

unread,
Sep 30, 2008, 6:37:59 AM9/30/08
to
On Tue, Sep 30, 2008 at 11:20:32AM +0200, Rocco Scappatura wrote:
> Hello,
>
> due to high load of my Postfix+Amavisd-new+MySQL boxes, I have had to
> disable the primary virus scanner (UVSCAN). I found that UVSCAN is very
> CPU expensive so I had no other choice other then disable it.

It is not daemonized, so no big surprise there.

> So Amavisd-new at the moment is using only CLAMAV. If it crash or stops
> working for some reason, my mail gateway doesn't deliver email at all.

Practically never happened here. If your mail queue goes bazookas for a few
minutes of downtime, then you have bigger problems.

> Since I find CLAMAV an effective virus scanner, I would like a similar
> tool (demonized, open source, active project) that I can use as secondary
> virus scanner for my Postfix+Amavisd-new+MySQL platform.

Wouldn't it be nice if there was a ClamAV competitor. But as we all know,
there is no such thing. You need to buy a better scanner like Sophos, F-Prot
etc..

Rocco Scappatura

unread,
Oct 1, 2008, 2:00:53 AM10/1/08
to
> > due to high load of my Postfix+Amavisd-new+MySQL boxes, I have had
to
> > disable the primary virus scanner (UVSCAN). I found that UVSCAN is
> very
>
> I have found that ClamAV detects as much or more than uvscan. Can you
> place uvscan as a backup scanner?

>
> > CPU expensive so I had no other choice other then disable it. So

How do I have to configure amavisd-new?

> Do you have the v5.30 engine? It is significantly faster than the
> v5.20
> or v5.10 engines. See related thread:
>

# uvscan --version
Virus Scan for Linux v4.40.0

:-((((

> http://groups.google.com/group/mailing.unix.amavis-
>
user/browse_thread/thread/290df7dc7b1fcb39/1cf69cf9691e083f?lnk=gst&q=u
> vscan+MrC#1cf69cf9691e083f

Thanks,

MrC

unread,
Oct 1, 2008, 2:26:22 AM10/1/08
to
Rocco Scappatura wrote:
>>> due to high load of my Postfix+Amavisd-new+MySQL boxes, I have had
> to
>>> disable the primary virus scanner (UVSCAN). I found that UVSCAN is
>> very
>>
>> I have found that ClamAV detects as much or more than uvscan. Can you
>> place uvscan as a backup scanner?
>>
>>> CPU expensive so I had no other choice other then disable it. So
>
> How do I have to configure amavisd-new?

Comment out the primary scanner entry for uvscan in

@av_scanners = (
...
}

and add it to

@av_scanners_backup = (
...
}

You may ultimately not need to do this, if the updated scanner engine is
fast enough for your environment. See below.

>
>> Do you have the v5.30 engine? It is significantly faster than the
>> v5.20
>> or v5.10 engines. See related thread:
>>
>
> # uvscan --version
> Virus Scan for Linux v4.40.0
>
> :-((((

Frown indeed - that's ancient, and I believe EOL'd. See the trial
version of 5.30 McAfee VirusScan Command Line Scanner for Linux

here:

https://secure.nai.com/apps/downloads/free_evaluations/default.asp?region=us&segment=small

Rocco Scappatura

unread,
Oct 1, 2008, 2:38:03 AM10/1/08
to
> Frown indeed - that's ancient, and I believe EOL'd. See the trial
> version of 5.30 McAfee VirusScan Command Line Scanner for Linux
>
> here:
>
>
https://secure.nai.com/apps/downloads/free_evaluations/default.asp?regi
> on=us&segment=small

I will try and I'll let you know..

Many thanks,

Rocco Scappatura

unread,
Oct 1, 2008, 11:28:22 AM10/1/08
to
>
https://secure.nai.com/apps/downloads/free_evaluations/default.asp?regi
> > on=us&segment=small
>
> I will try and I'll let you know..
>

The CPU has grown again.. I fear that I have to disable it!

Mark Martinec

unread,
Oct 2, 2008, 10:04:49 AM10/2/08
to
rocsca,

> The CPU has grown again.. I fear that I have to disable it!

Just move it from @av_scanners to the @av_scanners_backup list
and keep clamd as a primary virus scanner.

Mark

Mark Martinec

unread,
Sep 30, 2008, 9:27:21 AM9/30/08
to
rocsca,

> due to high load of my Postfix+Amavisd-new+MySQL boxes, I have had to
> disable the primary virus scanner (UVSCAN). I found that UVSCAN is very
> CPU expensive so I had no other choice other then disable it. So
> Amavisd-new at the moment is using only CLAMAV. If it crash or stops
> working for some reason, my mail gateway doesn't deliver email at all.
> Since I find CLAMAV an effective virus scanner, I would like a similar
> tool (demonized, open source, active project) that I can use as
> secondary virus scanner for my Postfix+Amavisd-new+MySQL platform.

Use your uvscan as a backup scanner. It won't be called unless
clamd fails, which is just what you need.

Mark

MrC

unread,
Sep 30, 2008, 12:39:04 PM9/30/08
to
Rocco Scappatura wrote:
> Hello,
>
> due to high load of my Postfix+Amavisd-new+MySQL boxes, I have had to
> disable the primary virus scanner (UVSCAN). I found that UVSCAN is very

I have found that ClamAV detects as much or more than uvscan. Can you


place uvscan as a backup scanner?

> CPU expensive so I had no other choice other then disable it. So

Do you have the v5.30 engine? It is significantly faster than the v5.20


or v5.10 engines. See related thread:

http://groups.google.com/group/mailing.unix.amavis-user/browse_thread/thread/290df7dc7b1fcb39/1cf69cf9691e083f?lnk=gst&q=uvscan+MrC#1cf69cf9691e083f

> Amavisd-new at the moment is using only CLAMAV. If it crash or stops
> working for some reason, my mail gateway doesn't deliver email at all.
> Since I find CLAMAV an effective virus scanner, I would like a similar
> tool (demonized, open source, active project) that I can use as
> secondary virus scanner for my Postfix+Amavisd-new+MySQL platform.

> rocsca

Rocco Scappatura

unread,
Oct 2, 2008, 8:03:29 AM10/2/08
to
>
https://secure.nai.com/apps/downloads/free_evaluations/default.asp?regi
> > > on=us&segment=small
> >
> > I will try and I'll let you know..
> >
>
> The CPU has grown again.. I fear that I have to disable it!
>

Or maybe is there a way to set 'uvscan' as secondary mail scanner and to
scan email only if the primary mail scanner fails?

Rocco Scappatura

unread,
Oct 2, 2008, 1:20:15 PM10/2/08
to
> > The CPU has grown again.. I fear that I have to disable it!
>
> Just move it from @av_scanners to the @av_scanners_backup list
> and keep clamd as a primary virus scanner.
>

I never have read the conf file completely... :-( Sorry..

Now I have:

@av_scanners = (

### http://www.clamav.net/ - backs up clamd or Mail::ClamAV
['ClamAV-clamscan', 'clamscan',
"--stdout --no-summary -r --tempdir=$TEMPBASE {}",
[0], qr/:.*\sFOUND$/, qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],

);


@av_scanners_backup = (

### http://www.nai.com/
['NAI McAfee AntiVirus (uvscan)', 'uvscan',
'--secure -rv --mime --summary --noboot - {}', [0], [13],
qr/(?x) Found (?:
\ the\ (.+)\ (?:virus|trojan) |
\ (?:virus|trojan)\ or\ variant\ ([^ ]+) |
:\ (.+)\ NOT\ a\ virus)/,
# sub {$ENV{LD_PRELOAD}='/lib/libc.so.6'},
# sub {delete $ENV{LD_PRELOAD}},
],

);


But from docs it seems to me that in this manner every message is
scanned two time anyway.. Is this true? Could I set up Amavisd-new so
that I skip the secondary av scanner if the first detect that the
message is infected?

rocsca

Dave McGuire

unread,
Oct 4, 2008, 4:19:02 PM10/4/08
to
On Sep 30, 2008, at 9:27 AM, Mark Martinec wrote:
>> due to high load of my Postfix+Amavisd-new+MySQL boxes, I have had to
>> disable the primary virus scanner (UVSCAN). I found that UVSCAN is
>> very
>> CPU expensive so I had no other choice other then disable it. So
>> Amavisd-new at the moment is using only CLAMAV. If it crash or stops
>> working for some reason, my mail gateway doesn't deliver email at
>> all.
>> Since I find CLAMAV an effective virus scanner, I would like a
>> similar
>> tool (demonized, open source, active project) that I can use as
>> secondary virus scanner for my Postfix+Amavisd-new+MySQL platform.
>
> Use your uvscan as a backup scanner. It won't be called unless
> clamd fails, which is just what you need.

Is this just a matter of moving the uvscan block from @av_scanners
to @av_scanners_backup in amavisd.conf?

-Dave

--
Dave McGuire
Port Charlotte, FL

Mark Martinec

unread,
Oct 6, 2008, 9:21:36 AM10/6/08
to
Dave,

> > Use your uvscan as a backup scanner. It won't be called unless
> > clamd fails, which is just what you need.
>
> Is this just a matter of moving the uvscan block from @av_scanners
> to @av_scanners_backup in amavisd.conf?

Yes.

Mark

Mark Martinec

unread,
Oct 6, 2008, 9:27:20 AM10/6/08
to
Rocco,

> > Just move it from @av_scanners to the @av_scanners_backup list
> > and keep clamd as a primary virus scanner.
>
> I never have read the conf file completely... :-( Sorry..
> Now I have:

> @av_scanners = ( ...
> @av_scanners_backup = ( ...

> But from docs it seems to me that in this manner every message is
> scanned two time anyway.. Is this true?

No.

> Could I set up Amavisd-new so that I skip the secondary av scanner
> if the first detect that the message is infected?

Secondary scanners are skipped is at least one primary provides
a definitive answer (clean or infected, not a failure).

amavisd.conf-sample:

# If no virus scanners from the @av_scanners list produce 'clean' nor
# 'infected' status (i.e. they all fail to run or the list is empty),
# then _all_ scanners from the @av_scanners_backup list are tried
# (subject to $first_infected_stops_scan). When there are both
# daemonized and equivalent or similar command-line scanners available,
# it is customary to place slower command-line scanners in the
# @av_scanners_backup list. The default choice is somewhat arbitrary,
# move entries from one list to another as desired, keeping main scanners
# in the primary list to avoid warnings.

Mark

Rocco Scappatura

unread,
Oct 8, 2008, 4:17:58 AM10/8/08
to

Thanks Mark.

Now is all clear.

rocsca

0 new messages