Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-13-2007, 06:57 PM
Junior Member
 
Posts: 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
Reply With Quote
  #2 (permalink)  
Old 05-18-2007, 04:42 PM
Special Member
 
Posts: 123
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
Reply With Quote
  #3 (permalink)  
Old 06-29-2007, 04:39 PM
Junior Member
 
Posts: 8
Default

Yeah, the goal is to see why FuzzyOcr is not reporting anything... oh well
Reply With Quote
  #4 (permalink)  
Old 08-05-2009, 12:50 PM
Active Member
 
Posts: 36
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.
Reply With Quote
  #5 (permalink)  
Old 08-05-2009, 11:07 PM
Zimbra Consultant & Moderator
 
Posts: 11,506
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
Reply With Quote
  #6 (permalink)  
Old 08-06-2009, 02:58 AM
Moderator
 
Posts: 5,806
Default

Once installed
Code:
su - zimbra
spamassassin -C /opt/zimbra/conf/spamassassin -D --lint > /tmp/sadebug.txt 2>&1
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #7 (permalink)  
Old 08-06-2009, 07:11 AM
Active Member
 
Posts: 36
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!
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0