Author Topic: Markasjunk2, spamassassin and hmailserver  (Read 7750 times)

tparvais

  • Guest
Markasjunk2, spamassassin and hmailserver
« on: July 20, 2012, 06:06:14 PM »
Hello

my setup: hmailserver, spamassassin in a box (Jam sofwtare) and roundcube 0.7.2

MarAsJunk2 plugin default features such as move to junk folder works fine.

I would like each time I tag a mail as jam to also teach spamassassin with sa-learn.exe. And vice-versa tag as a ham.


Do you know the commands to configure in MarasJunk2 ?
I tried $rcmail_config['markasjunk2_spam_cmd'] = 'c:\Program Files (x86)\JAM Software\SpamAssassin in a Box\sa-learn --spam --username=%u %f'

but nothing happened.

Thank you

Thomas

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: Markasjunk2, spamassassin and hmailserver
« Reply #1 on: July 20, 2012, 09:13:09 PM »
Hi Thomas,

The way I have implemented it myself is by using directory learn instead of sending the command on every user interaction.

I have spamassassin (Jam sofwtare) in c:\sa

I have created a SPAM folder to which all spam e-mails are reported to as follow:

SPAM
  --- ham
  --- spam

I have created  scheduled tasks which runs at night, checks the spam and ham folders using sa-learn and then empties those folders respectively.

The idea was not to run sa-learn on every user interaction since we all know that spamassassin in Windows is prompt to memory leaks.
I have ran spamassassin for months now and the memory usage is steady at 127MB.

Maybe something like that will work for you. It does in my case.

tparvais

  • Guest
Re: Markasjunk2, spamassassin and hmailserver
« Reply #2 on: July 21, 2012, 03:28:18 AM »
Hello

Thank you for your feedback

I'm using hmailserver and I wonder how to write all mails arriving in one user iMap folder (spam/ham) to specific hard disk folder for post treatment with sa-learn ?

Thomas