Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » SpamAssassin AutoUpdate of Rules for Windows
  •  
Jason

Messages: 12
Karma: 0
Send a private message to this user
I found a way to get automated SpamAssassin rule updates in Windows. Maxime Ritter has posted a Perl script to update SpamAssassin rules at http://maxime.ritter.eu.org/rule-get_article10.html. With a couple of tweaks and free downloads, you can get it running under Windows. Here's how:

1. Download ActiveState ActivePerl, if you don’t have it, and make sure to get the most current version, install using the default settings

http://www.activestate.com/Products/Download/Download.plex?i d=ActivePerl

2. Download GNUPG

http://www.gnupg.org

3. Add the directory where you install GNUPG to your PATH environment variable

4. Download the config-inifiles project (it’s a tarball, so you’ll need something like PowerArchiver to extract it)

http://sourceforge.net/projects/config-inifiles/

Extract the tarball to c:\Perl\Lib (unless you put Perl somewhere else). Because Windows doesn’t have symbolic links, you’ll have to rename the extracted directory "c:\Perl\Lib\Config-IniFiles-2.38" to "c:\Perl\Lib\Config" (there’s probably a better way to do this)

5. In the rule-get script, change the $real_path to the path where SpamAssassin is installed (for Kerio it's probably something like "c:\\progra~1\\kerio\\mailserver\\spamassassin"). Also, either create a directory called "/tmp" or change instances of "/tmp" to a different temporary directory (I created a new variable to hold the temporary directory, set it at the beginning and substituted it in the script). Also, if you backslashes instead of forward slashes, make sure to double them.

6. Finally, find the line that says open(FILE, "> $filename"); and add the line binmode(FILE), like:

open(FILE, "> $filename");
binmode(FILE)

same with:

open(SIG, "> $filename.sig");
binmode(FILE);

If you don’t do this, PERL in Windows will add carriage returns to line feeds and the signatures won’t work.
Previous Topic: Sieve scripting and "unknown user"
Next Topic: sending email on local domains
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Wed Nov 22 10:29:02 CET 2017

Total time taken to generate the page: 0.00359 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.