Koozali.org: home of the SME Server

Spam

Offline Teviot

  • *
  • 610
  • +0/-0
Spam
« on: February 15, 2005, 02:48:10 AM »
Has anayone successfully got a spam detection program running on SME6.5b2?

Regards
Adrian
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline raem

  • *
  • 3,972
  • +4/-0
Spam
« Reply #1 on: February 15, 2005, 03:43:54 AM »
I gather the spamassassin rpm is supplied with the iso, it's just a matter of enabling it.

I have not tried it on 6.5b2 yet, but I imagine RBL blocking should work see
http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/Spam%20blocking%20HOWTO%20using%20smtpfront-qmail%20for%20sme%20server.htm
...

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Spam
« Reply #2 on: February 15, 2005, 05:59:25 AM »
Hello Ray, do you (or anyone else) know how to enable/install SA3 on 6.52 beta?  
thanks
christian
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline raem

  • *
  • 3,972
  • +4/-0
Spam
« Reply #3 on: February 15, 2005, 10:16:06 AM »
Try this which you would have found if you did a good search

/sbin/e-smith/config set spamassassin service status enabled
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S85spamassassin
/etc/rc.d/init.d/spamassassin start
...

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Spam
« Reply #4 on: February 15, 2005, 03:16:56 PM »
I've done this as well.  Spamassassin starts, but there seems to be more that needs to be done to get it to start tagging spam.  Any other ideas?

JB
......

Offline raem

  • *
  • 3,972
  • +4/-0
Spam
« Reply #5 on: February 16, 2005, 01:24:36 AM »
If you have clamavis installed you need to do this as well

/sbin/e-smith/db configuration setprop amavis-ng qmail-queue /var/qmail/bin/qmail-spamc
/sbin/e-smith/signal-event email-update.

To work out how to configure spamassassin and get it to do what you want see
http://spamassassin.apache.org/
http://wiki.apache.org/spamassassin/FrequentlyAskedQuestions

see /etc/mail/spamassassin/local.cf

Enjoy the reading.

It may well be easier to just install the contrib from swerts and see if it works. I think I read that he has done some work on it to run on sme6.5.
...

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Spam
« Reply #6 on: February 16, 2005, 06:07:27 AM »
Yeah, I don't have clam installed on this test box.  I did do some digging on this.  Just really wanted to know if this default install was much different than what Jesper has put together.  I prefer using his install anyway.

thx,

JB
......

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Spam
« Reply #7 on: February 16, 2005, 06:20:09 AM »
There is a test installation script on Jesper's site for version 6.5 (spamfilter_installbeta.sh) presumably based on SA3.  You will find it in the spamfilter directory, go:

http://sme.swerts-knudsen.dk/index.html?frame=http%3A//sme.swerts-knudsen.dk/howtos/howto_7.htm

Unfortunately, it does not appear to work for me, it installs OK, but I cannot save any changes - there is an error message and this is it...  I would be interested to know if you have better luck with it, please let me know.  
Regards
christian.

PS: Ray, where did you find the info you provided in your last post, I am searching, but getting noway...  Thanks for assistance.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline raem

  • *
  • 3,972
  • +4/-0
Spam
« Reply #8 on: February 16, 2005, 06:35:29 AM »
burnat

> Ray, where did you find the info you provided in your last post

www.pagefault.org
...

ejfowler

spamfilter no dice on 6.5beta2
« Reply #9 on: February 16, 2005, 06:46:05 AM »
I just tried installing the swerts-knudsen spamfilter script on my 6.5beta2 test box. I had to edit the script for it to run on 6.5. When it ran, it complained about a couple of the RPMs already being installed. It somehow skipped the spamassin-tools package, but loaded everything else. However, the server manager panel errors out with the following:  

Spam Filter Settings
Software error:

Can't call method "props" on an undefined value at /etc/e-smith/web/panels/manager/cgi-bin/spamfilter line 206.

For help, please send mail to the webmaster (admin), giving this error message and the time and date of the error.

Looks like some work is needed. It's a shame I don't know perl, or I'd try to fix it. I captured a log of the script execution if anyone is interested, contact me at ejfowler@verizon.net.

Eric

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Spam
« Reply #10 on: February 16, 2005, 07:05:32 AM »
Eric,  are you sure you used the test script (at the very bottom of the list), said to be designed for 6.5beta.  I did not have to change anything, it run OK but, yes, complains about some rpms already installed.  I just realised that when runing, it says "this is for 6.5beta, not 6.52beta...  Perhaps a clue as to why it does not work on my 6.52 test box.
Regards
christian
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Spam
« Reply #11 on: February 16, 2005, 02:48:10 PM »
I installed the 65beta script last night and can't make any changes as well.  Once you click on save you get an internal server error on the server-manager screen.  Nothing is logged in messages but this is logged in /var/log/httpd/admin_error_log

[Wed Feb 16 07:46:16 2005] spamfilter: ERROR: You cannot set a config record without a type.
[Wed Feb 16 07:46:16 2005] [error] [client 127.0.0.1] malformed header from script. Bad header=</pre>: /etc/e-smith/web/panels/manager/cgi-bin/spamfilter

I'll wait a bit and see if Jesper is monitoring this thread to see if that helps in trying to correct the issue.

JB
......

ejfowler

spamfilter script
« Reply #12 on: February 17, 2005, 02:02:35 AM »
No, I didn't use the 6.5beta script, I copied a link from the how-to, my bad. I did try the beta script later on the same box, but it won't save changes. I was going to rebuild the box with a fresh install of 6.5beta2 and try again, but if others are having the same issue, I'll wait a bit to see if Jesper releases an update. For now, I'll just enable pattern matching per Ray Mitchell's how-to:

http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/Virus%20and%20file%20blocking%20HOWTO%20using%20smtpfront-qmail%20for%20sme%20server.htm

I still have to work out support for my DynDNS custom address with WebHop, and a few other things. But so far, I'm really pleased with 6.5beta2. It includes outbound smtp-auth support, so I'm hopeful I'll finally be able to run a mail server on DSL without every other domain dropping my mail because my IP is on a blacklist.

Eric

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Spam
« Reply #13 on: February 25, 2005, 07:08:58 AM »
I got to looking at this again tonight and I beleive I have found a fix.

edit /home/e-smith/spamassasssin_V3 and add the following information

conf.global=configuration|REST OF ENTRIES
rbl.global=rbl_lists|REST OF ENTRIES
wbl.global=wbl_lists|REST OF ENTRIES

This will set a type and you will no longer get the server manager errors.

HTH,

JB
......

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Spam
« Reply #14 on: February 27, 2005, 07:49:14 AM »
Quote from: "mrjhb3"
I got to looking at this again tonight and I beleive I have found a fix.

edit /home/e-smith/spamassasssin_V3 and add the following information
conf.global=configuration|REST OF ENTRIES
rbl.global=rbl_lists|REST OF ENTRIES
wbl.global=wbl_lists|REST OF ENTRIES
This will set a type and you will no longer get the server manager errors.



Hello JB.  I done this.  The file you referred to was empty, so I added the lines as suggested, and restarted spamassasin. (service spamassasin stop and start routine, OK).  But no joy, I still get the error message when trying to save the panel...  Have I missed something?  Any assistance very much appreciated.  Regards.  christian
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.