[Mimedefang] sendmail-mimedefang-spamassassin
Graham Dunn
gdunn at inscriber.com
Thu Jul 3 10:37:01 EDT 2003
On Thu, Jul 03, 2003 at 01:19:03AM -0700, Bill Friedman wrote:
>
> Sendmail is functions fine and SA does correctly filter a test message
> piped through it directly. But, it appears mail is not being filtered.I
> understand that local mail isn't
> filtered, I'm testing mail that's being forwarded. The message gets
> delivered but isn't filtered - no x-spam header ( I noticed that's
> what SA does, but, not sure what mimedefang does exactly )and no
> notification at all for message with all sorts of SA tests. I'm
> still a bit hazy on just how mimedefang and SA interwork. My
> understanding is that MD utilizes SA's filtering rules and then
> makes changes the changes. I followed the Mickey Hall HOW-TO and the
> mimedefang-filter with only the contact emails customized.
Do you have a line in your sendmail .mc file that resembles:
INPUT_MAIL_FILTER(`mimedefang', `S=local:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:5m;R:5m;E:5m')
That would be the first thing I would check if you're not seeing any
filtering. Are you seeing any X-Scanned-By: MIMEDefang 2.34 lines?
> And since I'm using mimedefang I won't be needing spamd, correct?
Yes
>
> What else might I check?
Just a quick overview of the process:
Sendmail passes the message to mimedefang through the milter
mechanism. Mimedefang looks at the message and alters it according to
the instructions contained in mimedefang-filter. One of the ways that
the message can be altered is when you tell mimdefang to use the
spammassassin functions to determine how spammy a message is.
Mimedefang takes the return value of the spam_assassin_check()
function, and uses that to determine how high a message's spam acore
was.
For example, I use
my($hits, $req, $names, $report) = spam_assassin_check();
if ($hits >= $req) {
[...]
action_change_header("X-Spam-Flag","YES");
in the sub filter_end ($) section of mimedefang-filter
More information about the MIMEDefang
mailing list