ClamAV 0.93 released
Rick Cooper
rcooper at dwford.com
Wed Apr 30 16:15:33 IST 2008
My generic spam scanner outputs the same as mailscanner does, but I don't
use Mail::SpamAssassin::Client . I can send you my generic spam scanner .pm
off list if you would like to look at it, it still has a lot of debugging
stuff in it as the last 5-6 weeks I really have a hard time typing with the
surgery on my left shoulder and then having broken both bones I my right arm
just above the wrist (full arm cast) 2 weeks ago. It will be some weeks
before I get back to this project.
Rick
> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info
> [mailto:mailscanner-bounces at lists.mailscanner.info] On
> Behalf Of Steve Freegard
> Sent: Wednesday, April 30, 2008 8:46 AM
> To: MailScanner discussion
> Subject: Re: ClamAV 0.93 released
>
> Hi Rick,
>
> Rick Cooper wrote:
> > If you really want to see mailscanner lose weight without
> losing speed you
> > should see it when it's using spamd instead of the perl
> mod.IIRC it drops to
> > 15mg or so per child, make that 21mg (just checked ) and
> is just as fast,
> > and spamd shares the sigs with it's children, again IIRC.
>
> Yes - I've done this using GenericSpamScanner.pm
>
> package MailScanner::CustomConfig;
> use Mail::SpamAssassin::Client;
>
> sub GenericSpamScanner {
> my($ip, $from, $to, $message) = @_;
>
> # Create spamd connection
> my $spamd = new Mail::SpamAssassin::Client({port => 783, host =>
> '127.0.0.1', user => 'mailscanner'});
> if(!$spamd) {
> MailScanner::Log::WarnLog("Unable to connect to spamd!");
> return(0,"Unable to connect to spamd");
> }
>
> my($mess) = join('',@$message);
>
> # Process message
> MailScanner::Log::InfoLog("Calling spamd....");
> my($result) = $spamd->process($mess);
> MailScanner::Log::InfoLog("Got score %s from
> spamd",$result->{score});
> return($result->{score}, $result->{score});
> }
>
> 1;
>
>
> I couldn't find any difference in speed to using the native
> Perl calls,
> however this way allows you to be creative with what user is sent to
> spamd to allow per-user/per-domain rules scores and bayes databases.
>
> The only thing I haven't been able to do is to actually
> return a decent
> Spam Report back to MailScanner.
>
> Cheers,
> Steve.
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MailScanner
mailing list