<!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.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I use exim 4.30, spamassassin and 
amavis.</FONT></DIV>
<DIV><FONT face=Arial size=2>I try to use system filter to take a copy of SPAM 
mark message an to deliver same</FONT></DIV>
<DIV><FONT face=Arial size=2>message to original recipient. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>When I test filter,&nbsp; everything seems to work 
normal</FONT></DIV>
<DIV><FONT face=Arial size=2>When I look log files, it seems that message 
deliver to original recipient, but</FONT></DIV>
<DIV><FONT face=Arial size=2>never get to mailbox. There is no message in 
queue.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>What I'm doing wrong?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Here is my system filter</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># Exim filter</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>if not first_delivery<BR>then<BR>&nbsp; 
finish<BR>endif</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>if first_delivery and $h_X-Spam-Status: contains 
"YES"<BR>&nbsp;&nbsp;&nbsp; then<BR>&nbsp;logfile 
/var/log/exim/spamlog<BR>&nbsp;logwrite "$tod_log From: $h_From: Subject: 
$h_Subject: \n \t X-Spam-Status: $h_X-Spam-Status: Sender: 
$sender_address"<BR>&nbsp;save /var/spool/mail/SPAMMAILS<BR>#&nbsp;mail to "<A 
href="mailto:$local_part@$domain">$local_part@$domain</A>"&nbsp;&nbsp;<EM> # try 
this with no success</EM><BR>&nbsp;finish<BR>#&nbsp;&nbsp; mail to 
$recipients&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<EM># try this with no success</EM><BR>#&nbsp;&nbsp; seen 
finish&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<EM># blackhole</EM> <BR>&nbsp;finish<BR></FONT><FONT face=Arial size=2>endif 
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Any good tutorial about exim filter ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Boris</FONT></DIV></BODY></HTML>