<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1555" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff size=2>That's
basically what I have except:</FONT></SPAN></DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff size=2>1. I
don't use fetchmail</FONT></SPAN></DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff size=2>2. My
procmail configuration runs everything through spamassassin:</FONT></SPAN></DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff
size=2>---------------------------------------.procmailrc----------------------------------------</FONT></SPAN></DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff size=2>#
eliminate duplicates (from CC, BCC, etc...)</FONT></SPAN></DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff size=2>:0 Wh:
msgid.lock<BR>| formail -D 65536 msgid.cache<BR></FONT></SPAN></DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff size=2>#
check for spam</FONT></SPAN></DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff size=2>:0fw:
spamassassin.lock<BR>| /usr/local/bin/spamc</FONT></SPAN></DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff
size=2> </DIV></FONT></SPAN>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff size=2><SPAN
class=923502514-20062006><FONT face=Arial color=#0000ff size=2># spam of at
least 9 we don't bother with... just junk it (cron runs 'sa-learn --mbox --spam
/tmp/spam')<BR></FONT></SPAN>:0:<BR>* ^X-Spam-Level:
\*\*\*\*\*\*\*\*\*<BR>
/tmp/spam</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff size=2>#
questionable spam... check manually (<9 but higher than default
threshold)<BR>:0:<BR>* ^X-Spam-Status:
Yes<BR>/usr/local/mailcopy/almost-certainly-spam</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff
size=2>:0wbh<BR>| /usr/local/rt3/bin/rt-mailgate --queue provisioning --action
comment --url <A
href="http://my.rt3.instance.com/">http://my.rt3.instance.com/</A><BR></FONT></SPAN></DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff
size=2>----------------------------------------------------------------------------------------------------</FONT></SPAN></DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff size=2>That's
that. I occasionally go through /usr/local/mailcopy/almost-certainly-spam and
save off every message in that box to either '/tmp/spam' (where it gets parsed
by sa-learn later) or I bounce it to another alias that invokes rt-mailgate
directly.</FONT></SPAN></DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=923502514-20062006><FONT face=Arial color=#0000ff
size=2>-Steve</DIV></FONT></SPAN>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com]<B>On Behalf Of
</B>Phil<BR><B>Sent:</B> Tuesday, June 20, 2006 10:22 AM<BR><B>To:</B>
rt-users@lists.bestpractical.com<BR><B>Subject:</B> [rt-users] Solution: RT
level email blocking<BR><BR></FONT></DIV>Thanks to all your help.<BR>This is
the solution I came up with for my fetchmail/promail/RT email blocking issue,
basically I wanted th ability to block emails from certain individuals,
however I did not have access to do this on the email server that handles our
mail. <BR><BR>This is my .fetchmailrc file:<BR>poll <A
href="http://mail.server.ca">mail.server.ca</A> with proto pop3 timeout 200
user 'rt' password '12345' is 'rt@localhost' here<BR><BR>This is my .forward
file:<BR>|/usr/bin/procmail <BR><BR>This is my .procmailrc file:<BR>:0<BR>*
^From:.*bad@user.com*<BR>/dev/null<BR><BR>:0<BR>* ^TOrt@<BR>|
/usr/local/rt3/bin/rt-mailgate --queue CustomerSupport --action correspond
--url <A href="http://10.0.0.1/">http://10.0.0.1/ </A><BR><BR>And I run the
fetchmail program as follows:<BR>fetchmail -m "/usr/bin/procmail -f
%F"<BR><BR>So this in effect forwards all emails to the rt-mailgate script
except for the email from <A
href="mailto:bad@user.com">bad@user.com</A><BR><BR>I hope this helps other
people trying to get somethign like this working<BR><BR>Thanks
again<BR><BR>Phil<BR><BR><BR><BR></BLOCKQUOTE></BODY></HTML>