[Mimedefang] MimeDefang + SpamAssassin on Solaris 9
John
john at jjgb.com
Mon May 26 00:11:01 EDT 2003
At 08:44 PM 5/25/2003, you wrote:
<snip>
below
>Here's the Mimedefang-filter routines:
>
>sub filter_end ($) {
>
> my($entity) = @_;
>
> if ($RelayAddr eq '192.168.99.1' or
> $RelayAddr =~ /^192\.168\./ or
> $RelayAddr =~ /^172\.16\./ or
> $RelayAddr =~ /^192\.168\./ or
> $RelayAddr eq '127.0.0.1' or
> $RelayAddr eq '66.93.61.157' or
> $RelayAddr eq '66.93.61.117') {
> md_log('mail_out',,$RelayAddr);
> } else {
> md_log('mail_in',,$RelayAddr);
> }
>
> # If you want quarantine reports, uncomment next line
> # send_quarantine_notifications();
>
> # No sense doing any extra work
> return if message_rejected();
>
> # Spam checks if SpamAssassin is installed
> if ($Features{"SpamAssassin"}) {
> if (-s "./INPUTMSG" < 100*1024) {
> # Only scan messages smaller than 100kB. Larger messages
> # are extremely unlikely to be spam, and SpamAssassin is
> # dreadfully slow on very large messages.
> my($hits, $req, $names, $report) = spam_assassin_check();
> if ($hits >= $req) {
> md_log('spam', $hits, $RelayAddr);
> my($score);
> if ($hits < 40) {
> $score = "*" x int($hits);
> } else {
> $score = "*" x 40;
> }
> # We add a header which looks like this:
> # X-Spam-Score: 6.8 (******) NAME_OF_TEST,NAME_OF_TEST
> # The number of asterisks in parens is the integer part
> # of the spam score clamped to a maximum of 40.
>
>I don't know what's happened here. Any Ideas?
Try Mimedefang.pl -features
See if it even knows SA exits...
i.e.
[22:07][root at ben:root]# mimedefang.pl -features
MIMEDefang version 2.30
File::Scan : yes
HTML::Parser : yes
Path:CONFDIR : yes (/etc/mail)
Path:QUARANTINEDIR : yes (/var/spool/MIMEDefang)
Path:SENDMAIL : yes (/usr/sbin/sendmail)
Path:SPOOLDIR : yes (/var/spool/MIMEDefang)
SpamAssassin : yes
Virus:CLAMAV : yes (/usr/bin/clamscan)
Virus:CLAMD : yes (/usr/sbin/clamd)
Virus:FileScan : yes
HTMLCleaner : no
Unix::Syslog : no
Virus:AVP : no
Virus:FPROT : no
Virus:FSAV : no
Virus:HBEDV : no
Virus:NAI : no
Virus:NVCC : no
Virus:OpenAV : no
Virus:RAV : no
Virus:SOPHIE : no
Virus:SOPHOS : no
Virus:TREND : no
Virus:TROPHIE : no
IO::Socket : Version 1.26
MIME::Tools : Version 5.411
MIME::Words : Version 5.404
Digest::SHA1 : Version 2.02
Mail::SpamAssassin : Version 2.55
Anomy::HTMLCleaner : missing
File::Scan : Version 0.43
HTML::Parser : Version 3.27
Unix::Syslog : missing
>--
>Albert E. Whale, CISSP
>http://www.abs-comptech.com
>----------------------------------------------------------------------
>ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
>Sr. Security, Network, and Systems Consultant
>Founding Board of Directors of Pittsburgh FBI - InfraGard
<snip>
John Jaeger - Billings, Montana
EMail To : <mailto:john at jjgb.com>
Home Page : <http://www.jjgb.com>
PGP:
RSA Key ID: 0xAAEC7751 <http://www.jjgb.com/public_files/RSA_Key.zip>
"Our liberty is protected by four boxes...
The ballot box, the jury box, the soap box, and the cartridge box."
- Anonymous
More information about the MIMEDefang
mailing list