[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Sheflug] Re: Spam
Gary
> I'm using MailScanner successfully with sendmail. But then it was written
> for sendmail and just has some vague instructions on hacking it to work
> with postfix etc.
>
> I'm just wondering what problems you had, because I'm thinking of:
> - enabling its spam checker
> - using it with qmail
Biggest problem was getting any part of it to work. Other one was
getting the developer of the software to understand that I use postfix
with SuSE 8.2. He kept going on about sendmail and RedHat. Didn't
help much.
So, it's a lot easier to get Mail::Audit going... been hacking the
/home/richard/.spam file a bit more but still can't get it to work.
Any suggestions greatly appreciated...
#!/usr/bin/perl
use Mail::Audit;
my $item = Mail::Audit->new;
my $maildir = "/home/richard/";
my %lists = (
sheflug => "sheflug",
debian => "debian",
suse => "suse",
spamassassin => "spamassassin",
mailscanner => "mailscanner"
);
while (<DATA>) {
chomp;
next unless $from =~ /$_/i or $to =~ /$_/i;
print LOG "$from:$subject:Spam?\n";
$item->accept($folder."spam");
}
for my $pattern (keys %lists) {
$item->accept($maildir.$lists{$pattern})
if $item->from =~ /$pattern/
or $item->to =~ /$pattern/;
}
$item->accept;
** Joe's Own Editor v2.9.8-pre1 ** Copyright (C) 2001 **
Richard
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.