<HTML dir=ltr><HEAD><TITLE>Re: SpamCheck report</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2800.1593" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText81692 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hmmm.... Simple, but neat :-)</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Can you use a custom function and a ruleset at the same time? i.e. using the authenticated header check along with an ordinary ruleset containing a list of whitelisted addresses?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Jason</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mailscanner-bounces@lists.mailscanner.info on behalf of Pascal Maes<BR><B>Sent:</B> Sun 27/05/2007 19:26<BR><B>To:</B> MailScanner discussion<BR><B>Subject:</B> Re: SpamCheck report<BR></FONT><BR></DIV>
<DIV><BR>
<P><FONT size=2>Le 27 mai 07 à 15:51, Jason Ede a écrit :<BR><BR>&gt; Hi,<BR>&gt;<BR>&gt; I don't suppose you'd be willing to share that custom function? We'd<BR>&gt; like to do the same, but the only way I can see to do that so far&nbsp;<BR>&gt; is to<BR>&gt; have postfix include the SASL login username in the header which I'm<BR>&gt; loathe to do if I can really avoid it.<BR>&gt;<BR>&gt; Jason<BR><BR><BR>Why not ?<BR>The first idea comes from the list so I could post it again.<BR>But first, thanks to Julian for his quick answer.<BR><BR>------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;<BR>------8&lt;------<BR><BR>package MailScanner::CustomConfig;<BR><BR>use strict 'vars';<BR>use strict 'refs';<BR>no&nbsp; strict 'subs'; # Allow bare words for parameter %'s<BR><BR>use vars qw($VERSION);<BR><BR>### The package version, both in 1.23 style *and* usable by MakeMaker:<BR>$VERSION = substr q$Revision: 2331 $, 10;<BR><BR>sub InitCheckSMTPAuth<BR>{<BR>&nbsp;&nbsp;&nbsp; # Empty<BR>}<BR><BR>sub EndCheckSMTPAuth<BR>{<BR>&nbsp;&nbsp;&nbsp; # Empty<BR>}<BR><BR>sub CheckSMTPAuth<BR>{<BR>&nbsp;&nbsp;&nbsp; my ($message) = @_;<BR>&nbsp;&nbsp;&nbsp; return 1 unless $message;<BR><BR>&nbsp;&nbsp;&nbsp; foreach (@{$message-&gt;{headers}})<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (/PUT HERE THE STRING ABOUT THE AUTHENTICATION/)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MailScanner::Log::InfoLog("Message %s from (%s) is&nbsp;<BR>authenticated ($1)", $message-&gt;{id}, $message-&gt;{<BR>fromuser});<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $global::MS-&gt;{mta}-&gt;AddHeader($message, 'X-MailScanner-<BR>Spamcheck:', 'Authenticated');<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp; return 1;<BR>}<BR><BR>1;<BR><BR>------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;<BR>------8&lt;------<BR><BR><BR>--<BR>Pascal<BR><BR>--<BR>MailScanner mailing list<BR>mailscanner@lists.mailscanner.info<BR><A href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</A><BR><BR>Before posting, read <A href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</A><BR><BR>Support MailScanner development - buy the book off the website!<BR></FONT></P></DIV></BODY><br />-----------------------------------------------------------
<br />The information in this e-mail and any attachments is 
confidential. It is intended solely for the attention and 
use of the named addressee(s). If you are not the intended
recipient, or person responsible for delivering this 
information to the intended recipient, please notify the
sender or email postmaster@birchenallhowden.co.uk and 
delete it from your computer systems. Unless you are the 
intended recipient or his/her representative you are not 
authorised to, and must not, read, copy, distribute, use
or retain this message or any part of it. All messages 
are scanned by Mailscanner and are believed to be clean. 
Recipients are advised to apply their own virus checks
to any message on delivery. No liability is accepted by
BirchenallHowden Ltd for any losses caused by viruses 
contracted during transit over the internet or present in 
any receiving system. BirchenallHowden Ltd, 233 Edmund Road, 
Sheffield S2 4EL.
<br />-----
<a href="http://www.birchenallhowden.co.uk/"><b>BirchenallHowden</b></a>

</HTML>