On Sat, 2004-11-06 at 09:49, Troels Walsted Hansen wrote:
> Hi all,
>
> I created a small plugin using the new plugin API in SpamAssassin 3.x.
> The plugin connects to a local ClamAV server (through TCP) and checks
> the email for virus. If a virus is found, it returns a positive return
> code to indicate spam and sets the header "X-Spam-Virus: Yes
> ($virusname)".
>
> It may seem odd to invoke an antivirus scanner through SpamAssassin,
> but it works very well for me so far. It saved me from dealing with
> Amavisd (which was quite painful, in all honesty).
>
> This is my first Perl code ever, so be gentle. ;-) The code is public
> domain, do whatever you like with it. Note that it requires
> File::Scan::ClamAV. Tested with SpamAssassin 3.0.1, ClamAV 0.80 and
> courier 0.44.
>
I have a question here. Doesn't that require clamav to load the virus
signatures each time? If so, it would be pretty inefficient and
resource-hungry. Wouldn't the combination of
courier-maildrop/clamassassin and clamdscan be a lot faster since the
clamd daemon keeps the virus.db loaded?
--
Robin Lynn Frank
Director of Operations
Paradigm-Omega, LLC
http://www.paradigm-omega.com/
====================================================================
Spambots are welcome at http://paradigm-omega.net/cgi-bin/custmail.cgi
====================================================================
Do unto others before others do unto you.