Koozali.org: home of the SME Server

Spam Filter

Offline brianr

  • *
  • 990
  • +2/-0
Re: permissions
« Reply #30 on: July 26, 2006, 04:44:44 PM »
Quote from: "mercyh"

If the new script runs as root, does each user still need shell access??


I am not sure, but I presume not - perhaps you can try it?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Spam Filter
« Reply #31 on: July 27, 2006, 02:34:02 PM »
Brianr

Quote

>>If the new script runs as root, does each user still need shell access??

>>I am not sure, but I presume not - perhaps you can try it?



I got the time to install the script last night and set up a LearnAsSpam folder for a user without Shell access. The Cron job ran and worked great. The spam  for the user without shell was processed. This is a nice improvement for some of us that  need things simple.

Royce Holdeman

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Spam Filter
« Reply #32 on: July 31, 2006, 02:45:03 PM »
Brianr

Quote
I got the time to install the script last night and set up a LearnAsSpam folder for a user without Shell access. The Cron job ran and worked great. The spam for the user without shell was processed. This is a nice improvement for some of us that need things simple.


I spoke too quickly. It looks like the script needs shell for each user to perform the LearnAsSpam folder delete function.


Royce Holdeman

Offline mdo

  • *
  • 355
  • +0/-0
Spam Filter
« Reply #33 on: July 31, 2006, 08:48:57 PM »
I have just started to look into the script only and ran into that (deletion) problem as well. I changed it for root to do the delete command like this:

# Now delete the file after learning
#my $delete = su - $key -c "rm -f $filetolearn";
my $delete = su - root -c "rm -f $filetolearn";

Michael
...

Offline Curly

  • ****
  • 114
  • +0/-0
Spam Filter
« Reply #34 on: August 01, 2006, 01:07:35 PM »
The cron-job rus as root, so the delete-command could be:

my $delete = rm -f $filetolearn;

I like the feature !
.......................................

Offline brianr

  • *
  • 990
  • +2/-0
Spam Filter
« Reply #35 on: August 08, 2006, 04:47:15 PM »
ok, have editted in curley's suggestion, the script no longer uses sudo, so does not need shell access for the users.

Also uploaded "sa-update" which runs the new for SA 3.1.3 online rule update program.  Have been running it for about 10 days with no problems, Note that  it does not run under SME6 - there are clearly some perl libraries missing.

Any comments?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline JonB

  • *
  • 351
  • +0/-0
Spam Filter
« Reply #36 on: August 09, 2006, 02:17:44 AM »
Thanks for the sa-update Brian.

I note that you actually need to run it twice. The first time it fails due to an invalid verification key but downloads the correct key.

second time it works like a charm.

Jon
...

Offline sonoracomm

  • *
  • 208
  • +0/-0
    • http://www.sonoracomm.com
Spam Filter
« Reply #37 on: August 09, 2006, 09:32:10 PM »
Hi All,

I updated my Spam Filter Configuration for SME 7 howto.  

Very little testing has been done, so please help me out by sending me any corrections, suggestions, errors, configuration ideas, etc. to gcooper(at)sonoracomm.com.

http://www.sonoracomm.com/index.php?option=com_content&task=view&id=49&Itemid=32

Thanks to everyone for all their help and contributions,

G

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Spam Filter
« Reply #38 on: August 21, 2006, 05:49:43 PM »
Hello again,

Just a note for those just starting with this.

D_gerst has posted a contrib RPM that sets everything up and gets you started with Bayes learning. See the thread here:

http://forums.contribs.org/index.php?topic=33350.msg142252#msg142252

Good Luck!

Royce H.