Koozali.org: home of the SME Server

spamassassin per user preferences

Offline kruhm

  • *
  • 680
  • +0/-0
spamassassin per user preferences
« on: September 27, 2007, 11:55:09 PM »
Is there a way to set per-user spamassassin preferences. For example:

-the box has spam set at 5
-joeuser has spam set at 7
« Last Edit: September 28, 2007, 12:00:36 AM by kruhm »

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: spamassassin per user preferences
« Reply #1 on: September 28, 2007, 12:49:38 AM »
Is there a way to set per-user spamassassin preferences.

No. Neither spamassassin nor qpsmtpd has access to any per-user configuration.

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: spamassassin per user preferences
« Reply #2 on: September 28, 2007, 06:41:01 AM »
I do it
enable tagging only

then add procmail/maildrop rules for users

headers     X-Spam-Level: \*\*\*\*\*        deleted
headers     X-Spam-Level: \*\*\*               junkmail

Offline jahlewis

  • *
  • 151
  • +0/-0
    • http://www.arachnerd.com/
Re: spamassassin per user preferences
« Reply #3 on: October 11, 2007, 07:47:42 PM »
Could you clarify a bit more what exactly you mean here?

Enable tagging only where?

How would you add the rule? 

How does it work?

Forgive my cluelessness, but this is something I'd love to be able to implement if it does what I think it does...

-JL
............

Offline raem

  • *
  • 3,972
  • +4/-0
Re: spamassassin per user preferences
« Reply #4 on: October 12, 2007, 02:26:10 AM »
jahlewis

> Enable tagging only where?

In the server manager Email panel for spam filtering


> How would you add the rule? 

Install the smeserver-mailsorting contrib from dungog.net, and I think you will also need the smeserver-userpanels & smeserver-userpanel contribs in order to acess each users procmail/maildrop rules.
http://sme.dungog.net/packages/smeserver/7.0/i386/html/index_dungog.html


> How does it work?

Procmail/maildrop applies filters (rules) when the message is delivered to the end user account, so it reads how many tags (***) are in the header (that gets added by the spam filter, as you previously enabled tagging) and then filters according to local rules in procmail/maildrop that are setup on a per user basis.


Install the contribs and ask more questions then if it's not clear how to set it up.
...

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: spamassassin per user preferences
« Reply #5 on: October 25, 2007, 03:13:58 AM »
If I understand this correctly, I can enable maildrop, but it won't affect anything until I disable sorting in the spam filter panel in server manager.

I have a number of users that would have no idea how to make adjustments to their spam filtering, but I could preset all the filtering before I disable it in sapmassassin correct?
If you think you know whats going on, you obviously have no idea whats going on!

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: spamassassin per user preferences
« Reply #6 on: October 28, 2007, 01:59:26 PM »
bump
If you think you know whats going on, you obviously have no idea whats going on!

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: spamassassin per user preferences
« Reply #7 on: October 28, 2007, 04:46:09 PM »
http://www.dungog.net/wiki/Smeserver-mailsorting

it will have no affect until you enable and create rules

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: spamassassin per user preferences
« Reply #8 on: October 29, 2007, 06:04:26 AM »
I have tried that, but I noticed that in the headers the spam rating is a number, not a series of "*" as it was in the past, so all mail is going to my inbox.  I am running SME7.2.  Is there something I am missing?

TIA

Bob
If you think you know whats going on, you obviously have no idea whats going on!

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: spamassassin per user preferences
« Reply #9 on: October 29, 2007, 07:36:30 AM »
the X-Spam-Level: * header isn't shown until
the X-Spam-Status: score >1

test your filter with a subject = foo rule

Offline byte

  • *
  • 2,183
  • +2/-0
Re: spamassassin per user preferences
« Reply #10 on: October 29, 2007, 11:12:26 AM »
Moved to contribs section as it is more appropriate here.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: spamassassin per user preferences
« Reply #11 on: October 29, 2007, 12:47:37 PM »
Looking at the headers, I do not see X-Spam-Level, but I do see X-Spam-Status, and the value is >1. Any Ideas?
If you think you know whats going on, you obviously have no idea whats going on!

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: spamassassin per user preferences
« Reply #12 on: October 29, 2007, 01:39:28 PM »
/server-manager > email > email filtering
Spam filtering    =enabled
Spam sensitivity =custom    
Custom spam tagging level =don't matter    say3
Custom spam rejection level =don't matter    say5
Sort spam into junkmail folder    =disabled
Modify subject of spam messages =disabled

hopefully you don't have custom set, if not I'm out of ideas

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: spamassassin per user preferences
« Reply #13 on: October 30, 2007, 04:12:03 AM »
Found the cure. Check http://forums.contribs.org/index.php?topic=31843.0

It has a link to a rpm to show the stars, and create the x-spam-level field in the header

Bob
If you think you know whats going on, you obviously have no idea whats going on!