<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=244572920-26062003><FONT face=Garamond>Hi All,
</FONT></SPAN></DIV>
<DIV><SPAN class=244572920-26062003><FONT
face=Garamond></FONT></SPAN> </DIV>
<DIV><SPAN class=244572920-26062003><FONT face=Garamond>I'm a newbie with Linux
and Bogofilter. I'm currently trying to implement a Mail Gateway to front my
Exchange server for content filtering. I've loaded RedHat 8.0 with Postfix to
receive mail and relay it to my internal Exchange server. I have now implemented
the script in integrating-with-postfix and have performed very little training,
SPAM - 150, GOOD - 30. Now when mail is passed to my Exchange server the
email is blank including the subject line and body. </FONT></SPAN></DIV>
<DIV><SPAN class=244572920-26062003><FONT
face=Garamond></FONT></SPAN> </DIV>
<DIV><SPAN class=244572920-26062003><FONT face=Garamond>To help remedy this
problem I've updated Bogofilter to 0.13.7 and tried to make minor changes to the
filter script. I don't seen anything out of the ordinary in the maillog. I'll
add the contents of my filtermail.sh at the bottom of the
email.</FONT></SPAN></DIV>
<DIV><SPAN class=244572920-26062003><FONT
face=Garamond></FONT></SPAN> </DIV>
<DIV><SPAN class=244572920-26062003><FONT face=Garamond>Should I even be doing
it this way or should I use procmail?</FONT></SPAN></DIV>
<DIV><SPAN class=244572920-26062003><FONT
face=Garamond></FONT></SPAN> </DIV>
<DIV><SPAN class=244572920-26062003><FONT face=Garamond>Any help would be
appreciated, <BR>Thanks,<BR>Aaron</FONT></SPAN></DIV>
<DIV><SPAN class=244572920-26062003><FONT
face=Garamond></FONT></SPAN> </DIV>
<DIV><SPAN class=244572920-26062003><FONT
face=Garamond></FONT></SPAN> </DIV>
<DIV><SPAN class=244572920-26062003><FONT
face=Garamond>#!/bin/sh</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=244572920-26062003><FONT
face=Garamond>FILTER=/usr/bin/bogofilter<BR>FILTER_DIR=/var/spool/filter<BR>POSTFIX=/usr/sbin/sendmail<BR>export
BOGOFITLER_DIR=/home/bogofilter</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=244572920-26062003><FONT face=Garamond># Exit codes from
<sysexits.h><BR>EX_TEMPFAIL=75<BR>EX_UNAVAILABLE=69</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=244572920-26062003><FONT face=Garamond>cd $FILTER_DIR ||
\<BR> { echo $FILTER_DIR does not exist; exit $EX_TEMPFAIL;
}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=244572920-26062003><FONT face=Garamond># Clean up when done or
when aborting.<BR>trap "rm -f inp.$$ msg.$$; exit $EX_TEMPFAIL" 0 1 2 3
15</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=244572920-26062003><FONT face=Garamond># bogofilter returns: 0
for spam; 1 for non-spam; 2 for I/O or other errors.<BR>rm -f inp.$$ || exit
$EX_TEMPFAIL<BR>cat > inp.$$ || exit $EX_TEMPFAIL<BR>$FILTER -f -u -e <
inp.$$ > msg.$$ || exit $EX_TEMPFAIL</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=244572920-26062003><FONT face=Garamond>exec $POSTFIX "$@" <
msg.$$<BR>exit $EX_TEMPFAIL</FONT></SPAN></DIV>
<DIV><SPAN class=244572920-26062003><FONT
face=Garamond></FONT></SPAN> </DIV>
<DIV><SPAN class=244572920-26062003><FONT
face=Garamond></FONT></SPAN> </DIV></BODY></HTML>