| 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.
|  | | 
05-13-2007, 06:57 PM
| | | 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  | 
05-18-2007, 04:42 PM
| | Special Member | |
Posts: 124
| | 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 | 
06-29-2007, 04:39 PM
| | | Yeah, the goal is to see why FuzzyOcr is not reporting anything... oh well | 
08-05-2009, 12:50 PM
| | | 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. | 
08-05-2009, 11:07 PM
| | Zimbra Consultant & Moderator | |
Posts: 19,639
| | Quote:
Originally Posted by garyo 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
| 
08-06-2009, 02:58 AM
| | | Once installed Code: su - zimbra
spamassassin -C /opt/zimbra/conf/spamassassin -D --lint > /tmp/sadebug.txt 2>&1
__________________ | 
08-06-2009, 07:11 AM
| | | 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! | 
06-29-2010, 11:48 AM
| | | Quote:
Originally Posted by phoenix Install spamassassin for your operating system and run the normal command to verify the rules. | Won't this interfere with Zimbra's normal behaviour? | 
06-29-2010, 11:59 AM
| | | Test lab ? If you have a sample you could always post and ask other people to run it through their system ?
__________________ | 
06-29-2010, 12:01 PM
| | Zimbra Consultant & Moderator | |
Posts: 19,639
| | Quote:
Originally Posted by nvargas Won't this interfere with Zimbra's normal behaviour? | No, as it's only a command line tool why should it?
__________________
Regards
Bill
| | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |