[Mimedefang] Spamassassin 3.0 Net-tests and Mimedefang
Martin Blapp
mb at imp.ch
Wed Jun 9 09:05:12 EDT 2004
Hi David,
> But network tests are happening, or the URIBL_SC_SURBL test would not
This seems to be a bug in spamassassin3.0. See below.
> have fired. I suspect SpamAssassin 3.0 is not interpreting the Received:
> header added by MIMEDefang correctly. I'll look into it.
Wrong alarm. I've tracked it down to the following:
The FreeBSD port installs per default the file
/usr/local/etc/mimedefang/spamassassin/sa-mimedefang.cf
I made a symlink from /usr/local/etc/mimedefang/spamassassin/local.cf
to the real local.cf (/usr/local/mail/spamassassin/local.cf) which turned into a
fatal error cause mimedefang included always the first one :-(
my $config = shift;
unless ($config)
{
if (-r "/usr/local/etc/mimedefang/spamassassin/sa-mimedefang.cf") {
$config = "/usr/local/etc/mimedefang/spamassassin/sa-mimedefang.cf";
} elsif (-r "/usr/local/etc/mimedefang/spamassassin/local.cf") {
$config = "/usr/local/etc/mimedefang/spamassassin/local.cf";
} else {
$config = "/usr/local/etc/mimedefang/spamassassin.cf";
}
}
Maybe we should check if a config-file exists twice in different location
and refuse to start, so this user-level error doesn't happen anymore again.
And there is a bug in spamassassin3.0 beta. In the sa-mimedefang.cf were network
tests disabled, but the URIBL_SC_SURBL test does ignore this setting.
Btw. it would be neat to add the autolearn status to mimedefang:
my $autolearn = $status->get_autolearn_status();
sub spam_assassin_is_spam (;$) {
my($hits, $req, $tests, $report, $autolearn) = spam_assassin_check(@_);
return undef if (!defined($hits));
return ($hits >= $req);
}
More information about the MIMEDefang
mailing list