<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Jason Ede wrote:
<blockquote
 cite="mid:77F6B238A9BA7847840CFF3DFDC46E190BB1F3@server03.BHL2.local"
 type="cite">
  <pre wrap="">X-BHL-MailScanner- Spamcheck: Authenticated
X-BHL-MailScanner-Information: Please contact the ISP for more information
X-BHL-MailScanner: Found to be clean
X-BHL-MailScanner-SpamCheck: 
X-BHL-MailScanner-From: <a class="moz-txt-link-abbreviated" href="mailto:j.ede@birchenallhowden.co.uk">j.ede@birchenallhowden.co.uk</a>
X-Spam-Status: No

Ok, I've found the custom ruleset from function file... I think I can see roughly what's going on, but I've a couple of questions...

The $option is the external name of the config option... I can't seem to work out what this should be... (I'm using the custom function on the 'Spam Checks' config option, but that doesn't comply with what $option should be

How do I then specify what ruleset is then used?
  </pre>
</blockquote>
The External name is the same as the MailScanner.conf name but with all
in lowercase, with all spaces and punctuation removed, so in your case
it's just "spamchecks".<br>
<blockquote
 cite="mid:77F6B238A9BA7847840CFF3DFDC46E190BB1F3@server03.BHL2.local"
 type="cite">
  <pre wrap="">
Jason

  </pre>
  <blockquote type="cite">
    <pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:mailscanner-bounces@lists.mailscanner.info">mailscanner-bounces@lists.mailscanner.info</a> [<a class="moz-txt-link-freetext" href="mailto:mailscanner">mailto:mailscanner</a>-
<a class="moz-txt-link-abbreviated" href="mailto:bounces@lists.mailscanner.info">bounces@lists.mailscanner.info</a>] On Behalf Of Julian Field
Sent: 28 May 2007 12:32
To: MailScanner discussion
Subject: Re: SpamCheck report



Jason Ede wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Hmmm.... Simple, but neat :-)

Can you use a custom function and a ruleset at the same time?
      </pre>
    </blockquote>
    <pre wrap="">Yes. Take a look in the example in the
/usr/lib/MailScanner/MailScanner/CustomFunctions directory.
    </pre>
    <blockquote type="cite">
      <pre wrap="">i.e. using the authenticated header check along with an ordinary
ruleset containing a list of whitelisted addresses?

Jason

---------------------------------------------------------------------
      </pre>
    </blockquote>
    <pre wrap="">---
    </pre>
    <blockquote type="cite">
      <pre wrap="">*From:* <a class="moz-txt-link-abbreviated" href="mailto:mailscanner-bounces@lists.mailscanner.info">mailscanner-bounces@lists.mailscanner.info</a> on behalf of
      </pre>
    </blockquote>
    <pre wrap="">Pascal
    </pre>
    <blockquote type="cite">
      <pre wrap="">Maes
*Sent:* Sun 27/05/2007 19:26
*To:* MailScanner discussion
*Subject:* Re: SpamCheck report


Le 27 mai 07 &agrave; 15:51, Jason Ede a &eacute;crit :

      </pre>
      <blockquote type="cite">
        <pre wrap="">Hi,

I don't suppose you'd be willing to share that custom function?
        </pre>
      </blockquote>
    </blockquote>
    <pre wrap="">We'd
    </pre>
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">like to do the same, but the only way I can see to do that so far
is to
have postfix include the SASL login username in the header which
        </pre>
      </blockquote>
    </blockquote>
    <pre wrap="">I'm
    </pre>
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">loathe to do if I can really avoid it.

Jason
        </pre>
      </blockquote>
      <pre wrap="">
Why not ?
The first idea comes from the list so I could post it again.
But first, thanks to Julian for his quick answer.

------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;-----
      </pre>
    </blockquote>
    <pre wrap="">-8&lt;
    </pre>
    <blockquote type="cite">
      <pre wrap="">------8&lt;------

package MailScanner::CustomConfig;

use strict 'vars';
use strict 'refs';
no  strict 'subs'; # Allow bare words for parameter %'s

use vars qw($VERSION);

### The package version, both in 1.23 style *and* usable by
      </pre>
    </blockquote>
    <pre wrap="">MakeMaker:
    </pre>
    <blockquote type="cite">
      <pre wrap="">$VERSION = substr q$Revision: 2331 $, 10;

sub InitCheckSMTPAuth
{
    # Empty
}

sub EndCheckSMTPAuth
{
    # Empty
}

sub CheckSMTPAuth
{
    my ($message) = @_;
    return 1 unless $message;

    foreach (@{$message-&gt;{headers}})
    {
         if (/PUT HERE THE STRING ABOUT THE AUTHENTICATION/)
         {
             MailScanner::Log::InfoLog("Message %s from (%s) is
authenticated ($1)", $message-&gt;{id}, $message-&gt;{
fromuser});
             $global::MS-&gt;{mta}-&gt;AddHeader($message, 'X-MailScanner-
Spamcheck:', 'Authenticated');
             return 0;
         }
     }
     return 1;
}

1;

------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;-----
      </pre>
    </blockquote>
    <pre wrap="">-8&lt;
    </pre>
    <blockquote type="cite">
      <pre wrap="">------8&lt;------


--
Pascal

--
MailScanner mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a>
<a class="moz-txt-link-freetext" href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a>

Before posting, read <a class="moz-txt-link-freetext" href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a>

Support MailScanner development - buy the book off the website!


-----------------------------------------------------------
The information in this e-mail and any attachments is confidential.
      </pre>
    </blockquote>
    <pre wrap="">It
    </pre>
    <blockquote type="cite">
      <pre wrap="">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
      </pre>
    </blockquote>
    <pre wrap="">recipient,
    </pre>
    <blockquote type="cite">
      <pre wrap="">please notify the sender or email <a class="moz-txt-link-abbreviated" href="mailto:postmaster@birchenallhowden.co.uk">postmaster@birchenallhowden.co.uk</a>
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
      </pre>
    </blockquote>
    <pre wrap="">to
    </pre>
    <blockquote type="cite">
      <pre wrap="">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
      </pre>
    </blockquote>
    <pre wrap="">Ltd,
    </pre>
    <blockquote type="cite">
      <pre wrap="">233 Edmund Road, Sheffield S2 4EL.
----- *BirchenallHowden* <a class="moz-txt-link-rfc2396E" href="http://www.birchenallhowden.co.uk/">&lt;http://www.birchenallhowden.co.uk/&gt;</a>
      </pre>
    </blockquote>
    <pre wrap="">Jules

--
Julian Field MEng CITP
<a class="moz-txt-link-abbreviated" href="http://www.MailScanner.info">www.MailScanner.info</a>
Buy the MailScanner book at <a class="moz-txt-link-abbreviated" href="http://www.MailScanner.info/store">www.MailScanner.info/store</a>

MailScanner customisation, or any advanced system administration help?
Contact me at <a class="moz-txt-link-abbreviated" href="mailto:Jules@Jules.FM">Jules@Jules.FM</a>

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit <a class="moz-txt-link-abbreviated" href="http://www.transtec.co.uk">www.transtec.co.uk</a>




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit <a class="moz-txt-link-abbreviated" href="http://www.transtec.co.uk">www.transtec.co.uk</a>

--
MailScanner mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a>
<a class="moz-txt-link-freetext" href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a>

Before posting, read <a class="moz-txt-link-freetext" href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a>

Support MailScanner development - buy the book off the website!
    </pre>
  </blockquote>
  <pre wrap=""><!---->
-----------------------------------------------------------
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 <a class="moz-txt-link-abbreviated" href="mailto:postmaster@birchenallhowden.co.uk">postmaster@birchenallhowden.co.uk</a> 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


  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng CITP
<a class="moz-txt-link-abbreviated" href="http://www.MailScanner.info">www.MailScanner.info</a>
Buy the MailScanner book at <a class="moz-txt-link-abbreviated" href="http://www.MailScanner.info/store">www.MailScanner.info/store</a>

MailScanner customisation, or any advanced system administration help?
Contact me at <a class="moz-txt-link-abbreviated" href="mailto:Jules@Jules.FM">Jules@Jules.FM</a>

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit <a class="moz-txt-link-abbreviated" href="http://www.transtec.co.uk">www.transtec.co.uk</a>
</pre>
</body>
<br />-- 
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.
<br />For all you IT requirements visit <a href="http://www.transtec.co.uk/">transtec Computers</a>.
</html>