How-to use SpamAssassin as a Mailsweeper plug-in

 

This is Page 2 of this guide, to see first page click here
 

Setup the MSWspamC plugin in Mailsweeper

Now SpamAssassin server SpamD is running on your server and the SpamC client can communicate with the SpamD, so now it is time to setup Mailsweeper to use SpamAssassin software..
Note this guide is made with Mailsweeper 5.0 software so it can look different from your setup, but the basic is the same.


31.
Start the MIMEsweeper Policy Editor and Login


32.
Make a Message area ready to store all the spam mails.


Right click on Message Areas and then select New->Quarantine


33.


Enter a name for the folder like "SpamAssassin - IN" to store the mails. and click "next"
(IN is for Incoming, I mostly split my messages up in outgoing and incoming)


34.


Change the management setting like you will have them and then click "next"


35.


Enter a name for the message area like "SpamAssassin - IN" and click "next" and then click "finish"


36.
Now make a Classification there use the message area


Right click on Policies->Classifications and select New->Classification


37.


Enter a name for the Classification like "SpamAssassin - IN" and move it up or down so it will be on the right place on your classification list.


38.


Right click on the "SpamAssassin - IN" classification and click on new->Quarantine


39.


Select the message area "SpamAssassin - IN" and click "next"


40.


Select what way you like Mailsweeper to store the mails in the message area and then click "next"


41.


Enter a name for this action and then click "next" and click "finish" on the next screen.


42.
Now both the Message area and the Classification are ready and the next task is to make a Scenario there use the MSWspamC client


Right click on Policies->Scenarios->Incoming and then click on New->Executable


43.


Do not change any of the settings now, just click "next"


44.


Select "Include selected data types" and then select only the "Container\SMTP message" and then click "next"


45.


In the Application filename textbox enter "mswspamc.exe
In the Command line textbox enter "/mail:%FILENAME% /log:%LOGNAME%"
Select Application type to be Win322
Click "Advanced"


46.


Change the Timeout value to 300 and then click "ok" and click "next"


47.


Enter the Return code, Status and Description like the table below shows and then click "next"

Return code

Status Description
0 NONE %LOGTEXT%
1 DETECTED %LOGTEXT%
2 NOT_CHECKED Got a error when processing the mail


48.


Select "Use partial log file"
In the text precedes textbox enter ">>>"
In the text follows text textbox enter "<<<"
Click "next"


49.


Select the "On detected" classification to be "SpamAssassin - IN" and the click "next"


50.


Enter a name like "MSWspamC" and then click "next"


51.


Verify that you summary look much like this and click "finish"


52.


Right click on Servers->YourServerName and select properties


53.


Select the tab "Advanced Paths"
Click "Add"
Select the advanced path to be "Scenarios/Incoming/MSWspamC/ExeName"
In the New path textbox enter "C:\mswspamc\mswspamc.exe"
Click "Add";
Click "OK"


54.


Click "save" on the menu bar and verify that the policy was applied with out any errors and then close the editor down.


55.


Now SpamAssassin is installed as a plug-in for Mailsweeper and the only thing for you to do now is to open the Mailsweeper web console to monitor the status and do some testing to make sure it is all working.



Hope you like my little guide there has taken my long time to get work right and make the software, In fact I start back in 2005 but then the windows versions of SpamAssassin was not working very well and it was first when Eugene Pivovarov at SAwin32.sourceforge.net hade compiled a good well working version of SpamAssassin that I got it all working well.


Hope this will catch a lot Spam for you.
Tooms

 

Credits and Thanks

Spamassassin.apache.org
Thanks to the all in SpamAssassin dev. team
Remember to support the team, look at http://svn.apache.org/viewvc/spamassassin/trunk/CREDITS?root=Apache-SVN&view=markup

Eugene Pivovarov

Thanks a lot to Eugene Pivovarov for compiling SpamAssassin to the Windows platform and all his work to get the software work well..
Remember to support his work by donate some cash at http://sourceforge.net/project/project_donations.php?group_id=175673


 
Talk about this How-to

Forum post about this how-to
http://www.tooms.dk/forum/topic.asp?TOPIC_ID=156

 

 

 

This is Page 2 of this guide, to see first page click here
 


.