On Saturday 06 November 2004 09:49 am, 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 <http://www.clamav.net/> 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. > <http://search.cpan.org/%7Ecfaber/File-Scan-ClamAV/lib/File/Scan/ClamAV.pm> > Tested with SpamAssassin 3.0.1, ClamAV 0.80 and courier 0.44.
I put this into the plugin directory and then the cf file with my others under /etc/mail/spamassassin but I get an error that it is unable to load the clamav plugin. This is the first time I have tried to work with one am I missing something? > > Regards, > Troels Walsted Hansen -- -~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~- Brook Humphrey Mobile PC Medic, 420 1st, Cheney, WA 99004, 509-235-9107 http://www.webmedic.net, [EMAIL PROTECTED], [EMAIL PROTECTED] Holiness unto the Lord -~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-