[Mimedefang] Re: Newbie question - testing
Daniel C. Mahoney
dan at wolf.com
Thu Jul 21 12:26:09 EDT 2005
> You can test the syntax of SA and mimedefang filters by:
>
> spamassassin --lint
> mimedefang.pl -f /loca/to/test/mimedefang-filter -test
Ok, the individual tests show that the install is working. Actually, I was
aware of those tests, was hoping for a way to verify that the whole
spamassassin/clamav/mimedefang chain was doing it's thing.
Here's my situation. I just started as sys admin for a shop that runs
sendmail. All of my previous work for the last bunch of years has used
qmail, so I'm having to relearn sendmail after a bunch of years. We've got a
working sendmail and old installs of spamassassin, clamav, and mimedefang.
Management and the acting sys admin decided that we needed new, clean
installs of SA, clamav, and MD. I installed the individual components and
checked each of them as I installed them. Spamassassin properly identified
spam and clamav properly identifies viruses - that much I have been able to
show.
I've followed Mickey Hill's HOWTO and it looks to me like I've got all the
pieces in place. They just aren't playing nicely together.
Mimedefang is aware of spamassassin and clamav, and it's there are lines in
sendmail.cf that look like:
O InputMailFilters=mimedefang
and
Xmimedefang, S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T,
T=S:5m;R:5m
I know that sendmail is calling mimedefang, as I'm seeing lines in the log
file that look like:
Jul 21 09:06:59 mail sm-mta[9007]: j6LG6il1009007: Milter add: header:
X-Scanned-By: MIMEDefang 2.52 on 216.177.75.74
I do have a queue-runner going, as "ps ax | grep send" returns:
-su-2.05b# ps ax | grep send
8529 ?? Ss 0:07.68 sendmail: accepting connections (sendmail)
8532 ?? Is 0:00.03 sendmail: Queue runner at 00:30:00 for
/var/spool/client
45191 ?? I 0:00.01 sendmail: j6LEcO0C045191
82-35-232-58.cable.ubr01.cam
Clamd is running.
Here's the problem: when I send myself mail with SpamAssassin's sample SPAM
message, it gets delivered with no problem and no notations. When I send
myself mail with one of clamav's sample virus files attached, it gets
delivered without problem and no notations. I'm using MD's
suggested-minimum-filter-for-windows-clients for my mimedefang-filter.
Any suggestions what I might have overlooked, misconfigured, or forgotten to
configure? This system is running FreeBSD 4.9-STABLE with sendmail 8.2.11
(I'd really rather not upgrade sendmail right now, since this version is
working). Options compiled into sendmail are:
Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING
SASLv2
SCANF STARTTLS TCPWRAPPERS USERDB XDEBUG
--------------------------
Dan Mahoney
dan at wolf.com
"How you behave towards cats here below determines your status in Heaven."
Robert Heinlein
"There are two means of refuge from the miseries of
life - music and cats" - Albert Schweitzer
More information about the MIMEDefang
mailing list