Koozali.org: home of the SME Server

Spamassassin not working for me on 6.5RC1

rich

Spamassassin not working for me on 6.5RC1
« on: November 03, 2005, 03:12:48 AM »
I am running SME 6.5RC1 and am trying to enable SpamAssassin. I have followed the howto from http://sme.swerts-knudsen.dk/index.html?frame=http%3A//sme.swerts-knudsen.dk/howtos/howto_29.htm


When I go into the "Spam Filter" panel and turn it on ALL mail stops working.
I have no idea where it goes while it's enabled, but when I turn it off the mail starts to trickle in again.
Oddly enough, sometimes two or three copies get delivered to the users box.

I was watching /var/log/qmail/current while enabling the spam filter and as soon as I do no entries go to the file.
Then, I turn it off and it starts again (although slowly at first.)

When I call spamd from the command line I DO get a bunch of errors which I will paste at the bottom.

I'm hoping to get this resolved sometime soon as this is a recently migrated domain that used to have spamassassin and I'm telling you , I need it back.
I got about 200 spam emails today sent to my blackberry and it's driving me NUTS!

Thanks in advance.

Here is the spamd error when called from the shell;

[root@www root]# spamd
configuration file "/usr/share/spamassassin/20_advance_fee.cf" requires version 3.001000 of SpamAssassin, but this is code version 3.000002. Maybe you need to use the -C switch, or remove the old config files? Skipping this file at /usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/Conf/Parser.pm line 329.
configuration file "/usr/share/spamassassin/20_net_tests.cf" requires version 3.001000 of SpamAssassin, but this is code version 3.000002. Maybe you need to use the -C switch, or remove the old config files? Skipping this file at /usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/Conf/Parser.pm line 329.
Failed to run USER_IN_SPF_WHITELIST SpamAssassin test, skipping:
        (Can't locate object method "check_for_spf_whitelist_from" via package "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/PerMsgStatus.pm line 2312.
)
Failed to run __ENV_AND_HDR_FROM_MATCH SpamAssassin test, skipping:
        (Can't locate object method "check_for_matching_env_and_hdr_from" via package "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/PerMsgStatus.pm line 2312.
)
Failed to run USER_IN_DEF_SPF_WL SpamAssassin test, skipping:
        (Can't locate object method "check_for_def_spf_whitelist_from" via package "Mail::SpamAssassin::PerMsgStatus" (perhaps you forgot to load "Mail::SpamAssassin::PerMsgStatus"?) at /usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/PerMsgStatus.pm line 2312.
)

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Spamassassin not working for me on 6.5RC1
« Reply #1 on: November 03, 2005, 03:34:56 AM »
rich

> I am running SME 6.5RC1...

Did you use this script ?
For SME 6.5RC1 use:
spamfilter_installbeta.sh

Did you check the FAQ at the bottom of knuddi's howto page, particularly the bit about
How does the SpamFilter interact with other antivirus packages/installations ?

Try
/etc/init.d/spamassassin status

should give
spamd (pid 4103 29582 29578) is running...
...

rich

Re: Spamassassin not working for me on 6.5RC1
« Reply #2 on: November 03, 2005, 03:38:48 AM »
Quote from: "RayMitchell"
rich

> I am running SME 6.5RC1...

Did you use this script ?
For SME 6.5RC1 use:
spamfilter_installbeta.sh


Yeah, I did use that script.

Did you check the FAQ at the bottom of knuddi's howto page, particularly the bit about
How does the SpamFilter interact with other antivirus packages/installations ?

Yep, read the FAQs' at the bottom too, and tried all them to no avail.

Try
/etc/init.d/spamassassin status

should give
spamd (pid 4103 29582 29578) is running...


Yep, spamd was running and I had .procmailrc set up and working. When I first installed it no .procmailrc was set up, so I manually created them. Then I moved them out of the users root and re-installed. The second time the scripts were created for me but still no luck.

I have no clue where to look next.

Thanks for your resonse Ray.

Any other suggestions?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Spamassassin not working for me on 6.5RC1
« Reply #3 on: November 03, 2005, 06:36:50 AM »
rich

> Did you actually check the db settings are correct ?

eg for qmail-queue and ExternalInterfacesFilter and  InternalInterfacesFilter

I get:

/sbin/e-smith/db configuration show amavis-ng

amavis-ng=service
    MailFrom=xxxxxxx@mydomain.com
    Notifiers=Admin
    qmail-queue=/var/qmail/bin/qmail-spamc
    status=enabled


/sbin/e-smith/db configuration show smtpfront-qmail

smtpfront-qmail=service
    ExternalInterfacesFilter=/usr/bin/qmail-queue.amavis
    Instances=40
    InternalInterfacesFilter=/usr/bin/qmail-queue.amavis
    MaxMessageSize=25000000
    Patterns=enabled
    PatternsFile=/var/qmail/control/patterns.default
    Proxy=enabled
    RBLList=dnsbl.sorbs.net:whois.rfc-ignorant.org:relays.ordb.org:sbl-xbl.spamhaus.org
    access=public
    authentication=disabled
    status=enabled
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Spamassassin not working for me on 6.5RC1
« Reply #4 on: November 03, 2005, 06:40:29 AM »
rich

Just another thought.

> When I first installed it no .procmailrc was set
> up, so I manually created them.

You might want to try installing the user-manager contrib (free from dungog), to set up procmail correctly and then try running knuddi's spam filter install script again.
...