OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Maillists for Niclas_at_Soderlund.Org (Niclas_at_Soderlund.Org)
Date: Sun Nov 03 2002 - 14:36:08 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hi,

    thanks for a fast reply. I found one instance of spam_scan2 in the amavisd
    file:

    "
    [snip]

    # Run some other scanner, e.g. anti-spam
    # - returns true if spam detected,
    # - returns 0 if no spam found,
    # - throws exception (die) in case of errors,
    # or just returns undef if it did not complete its jobs
    #
    sub spam_scan ($) { 0 }
    sub spam_scan2 ($) {
         my $fh = shift;
         $fh->seek(0,0) or die "Can't rewind mail file: $!";

         # compute SHA1 body signature to be used with Vipul's Razor
         $razor_body_signature = Razor::String::hash($fh);
         push(timing, 'razor hash', time);
         if ($razor_body_signature =~ /^([0-9a-fA-F]{40})$/) {
             $razor_body_signatAt 16:38 2002-11-03, you wrote:
    [snip]

    Changing this however, spam_scan to spam_scan2 and vice versa, generates
    the following error in the log:

    "
    nov 3 21:34:46 pickles amavis[2157]: Checking: <nstechtradeinter.se> ->
    <niclassoderlund.org>
    nov 3 21:34:47 pickles amavis[2157]: spam_scan FAILED, retry: Undefined
    subroutine &Razor::String::hash called at /usr/sbin/amavisd line 2792,
    <GEN3> line 50.
    nov 3 21:34:47 pickles amavis[2157]: mail processing failed, RETRY/TEMPFAIL
    Nov 3 21:34:47 pickles postfix/smtp[2145]: 969BE2A29F:
    to=<niclassoderlund.org>, relay=127.0.0.1[127.0.0.1], delay=1,
    status=deferred (host 127.0.0.1[127.0.0.1] said: 450 Temporary failure,
    retry, id=02157-01, spam_scan FAILED)
    "
    Do I Need this (new to me right now) Razor package installed and if so,
    what is it.

    TIA,

    Niclas

    >On Sun, Nov 03, 2002 at 04:24:15PM +0100, Maillists for
    >NiclasSoderlund.Org wrote:
    > > Hiya,
    > >
    > > thanks for the advice. Ive just setup amavisd-new (with a little
    > > heartbreaking stop before I realised that the setup was a bit different in
    > > master.cf and main.cf..) and that is now working as it did before with
    > > maildrop.
    > >
    > > Now..it didnt come with any info about getting spamassassin
    > > started/configured. All it said, was
    > >
    > > "
    > > amavis for Debian
    > > ------------------
    > > This version of amavis is based on the amavisd-new branch of amavis. See
    > > <URL:http://www.ijs.si/software/amavisd/> for details.
    > >
    > > It now has support for spamassassin built in. However
    > > spamassassin support is now disabled and cannot be easily
    > > reenabled. This is because the version of razor in Debian
    > > is incompatable.
    > >
    >Which version are you using ? Are you in testing ?
    >It is easily reactivated.
    >The changelog says it was disabled because of error for some dependancies
    >with perl 5.8 but in testing it is perl 5.6 (unlike unstable in 5.8).
    >
    >Edit amavisd, search for spam_scan (IIRC) comment out the line with
    >span_scan, and rename spam_scan2 to spam_scan. Spamassasin will be
    >checked again via amavis-new.
    >
    >Luc
    >-
    >To unsubscribe, send mail to majordomopostfix.org with content
    >(not subject): unsubscribe postfix-users

    |_|_|_|_| Niclas Söderlund
    |_|_|_|_| Project Consultant
    |_|_|_|_| TechTrade International AB
    |_|_|_|_| "Musa sapientum fixa est in aure"
    |_|_|_|_|-------------------------------------------
    This email is intended solely for the addressee and
    is strictly confidential. If you have received this
    email in error(!please notify us!) then permanently
    delete it. We make every effort to keep our network
    free from viruses, but you should check this e-mail
    and any attachments to it for viruses, as we cannot
    accept any liability for viruses transmitted by us. If
    this message was of a private nature, It only trans-
    mitts the view of the single private person and not
    the company as such.
    |_|_|_|_|-------------------------------------------

    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users