Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Spamassassin: How to test homemade rules?

  1. #1
    Tenshi is offline Junior Member
    Join Date
    Apr 2007
    Posts
    8
    Rep Power
    8

    Default Spamassassin: How to test homemade rules?

    Everything is running smoothly (so far!) but I can't seem to figure this one out...

    Trying to install my own personal rules and FuzzyOCR but both seemed to be ignore at the moment. On a "normal" system, I would do 'spamassassin --lint' but how can we achieve the same purpose with Zimbra?

    PS: And no, signing-up for spam is not part of the solution in my mind

  2. #2
    scottnelson is offline Special Member
    Join Date
    Jun 2006
    Location
    Washington DC
    Posts
    124
    Rep Power
    9

    Default

    That's why I keep a bunch of old spam in a special folder.
    Just wack some old .gif, etc.,etc., spams that into an e-mail from outside and e-mail into your server.

    All you want to check are the FuzzyOCR engine score anyway right?

    I actually haven't seen much of those lately..........

    Scotty

  3. #3
    Tenshi is offline Junior Member
    Join Date
    Apr 2007
    Posts
    8
    Rep Power
    8

    Default

    Yeah, the goal is to see why FuzzyOcr is not reporting anything... oh well

  4. #4
    garyo is offline Active Member
    Join Date
    Sep 2008
    Location
    Cambridge, MA
    Posts
    41
    Rep Power
    6

    Default

    Sorry to revive an old thread, but I didn't see this resolved anywhere else. I have some custom SA tests in ~zimbra/spamassassin/conf, and I need to test them to see if they're working. In a normal SA install, I use spamassassin -D -t and look at the debug lines to make sure all my rules and modules are active. How can I do this within Zimbra? I think SA doesn't really run normally, it's run within amavisd as a perl module, correct? Any help would be appreciated.

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,469
    Rep Power
    56

    Default

    Quote Originally Posted by garyo View Post
    Sorry to revive an old thread, but I didn't see this resolved anywhere else. I have some custom SA tests in ~zimbra/spamassassin/conf, and I need to test them to see if they're working. In a normal SA install, I use spamassassin -D -t and look at the debug lines to make sure all my rules and modules are active. How can I do this within Zimbra? I think SA doesn't really run normally, it's run within amavisd as a perl module, correct? Any help would be appreciated.
    Install spamassassin for your operating system and run the normal command to verify the rules.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Once installed
    Code:
    su - zimbra
    spamassassin -C /opt/zimbra/conf/spamassassin -D --lint > /tmp/sadebug.txt 2>&1

  7. #7
    garyo is offline Active Member
    Join Date
    Sep 2008
    Location
    Cambridge, MA
    Posts
    41
    Rep Power
    6

    Default

    Thanks uxbod! I found I also had to say --siteconfigpath=/dev/null to prevent it from trying to load my regular SA site config from /etc/spamassassin (which would not be used when amavisd calls it).

    I also tried /opt/zimbra/amavisd/sbin/amavisd debug-sa, but that didn't work (gave me errors about the daemon already running). That seemed like, if it had worked, it would be the most correct invocation of SA since it would call it with the correct env vars and options -- one of the things I wanted to test for was calling pyzor/razor2/dcc, which all require some config files in certain places. But your way seems good enough for now. Thanks!

  8. #8
    nvargas is offline Junior Member
    Join Date
    Apr 2010
    Posts
    9
    Rep Power
    5

    Default

    Quote Originally Posted by phoenix View Post
    Install spamassassin for your operating system and run the normal command to verify the rules.
    Won't this interfere with Zimbra's normal behaviour?

  9. #9
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Test lab ? If you have a sample you could always post and ask other people to run it through their system ?

  10. #10
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,469
    Rep Power
    56

    Default

    Quote Originally Posted by nvargas View Post
    Won't this interfere with Zimbra's normal behaviour?
    No, as it's only a command line tool why should it?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 5 users browsing this thread. (0 members and 5 guests)

Similar Threads

  1. Rules du Jour - spamassassin
    By sturgis in forum Administrators
    Replies: 10
    Last Post: 11-27-2007, 10:12 AM
  2. Using Zimbra LDAP for System Auth
    By webguyinternet in forum Administrators
    Replies: 7
    Last Post: 10-22-2007, 03:35 PM
  3. AD GAL: successful, but empty, test results
    By tmadden in forum Administrators
    Replies: 0
    Last Post: 10-02-2006, 03:36 PM
  4. Per user spamassassin settings possible?
    By redhat in forum Administrators
    Replies: 1
    Last Post: 08-11-2006, 03:51 PM
  5. antispam not working?
    By moebis in forum Installation
    Replies: 16
    Last Post: 12-03-2005, 08:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •