Mailing List Archive

Allowing MS Outlook users to submit Bayes training messages
All:

Here's what we're doing to allow Microsoft Outlook users to
train a global SA Bayes database:

1) Add "spam", "spam.old", "invalid-format-spam", "ham",
"ham.old" and "invalid-format-ham" subdirectories to the
spamd home directory.

2) Share the spamd home directory via samba, using the name
"spamassassin". I have the permissions such that only the
"spam" and "ham" directories can be accessed for writing.
I've also set up an alias so that \\spamassassin refers to
the mail server (regardless of what it's actually named) -
you might want to do the same.

3) I have the attached README file in the spamd home dir,
where people can read it via the spamassassin share. This
contains the instructions for how to submit messages for
training.

4) I run the attached spamassassin_training script from
cron.daily.

5) You will need the "readpst" program from:
http://sourceforge.net/projects/ol2mbox
Download the libpst package, apply the blank lines patch
from:
http://sourceforge.net/tracker/?group_id=18756&atid=318756
compile, and copy the readpst program to /usr/local/bin.

You could skip the break-pst-mbox-out-to-individual-messages
step and just run "sa-learn --mbox" across the mbox file. I
may do that sometime...


--
John Hardin KA7OHZ
Internal Systems Administrator/Guru voice: (425) 672-1304
Apropos Retail Management Systems, Inc. fax: (425) 672-0192
-----------------------------------------------------------------------
Failure to plan ahead on someone else's part does not constitute an
emergency on my part.
- David W. Barts in a.s.r
Re: Allowing MS Outlook users to submit Bayes training messages [ In reply to ]
John Hardin wrote:
> All:
>
> Here's what we're doing to allow Microsoft Outlook users to
> train a global SA Bayes database:

Seems like a bit much for a normal user to follow easily. We just have
our users copy their mis-marked spam/ham to a public mail folder on our
Exchange server, then use Imapscrape to pull them off that folder onto
our SpamAssassin gateway. Of course, this solution won't work if you
don't use an Exchange server. Your solution seems to be more oriented
towards people using PST files.

I'm trying to learn enough about Outlook and COM to write an add-in that
creates a toolbar button to do the copying for my users. That way, they
could just highlight their missed spam and click the button, and the
messages would be moved out of their inbox into the public folder.

Of course, if anyone out there knows Visual Basic and COM, and would be
willing to provide such an add-in to the community at large, I'd take
that, too. :)

Steven
--
Steven Dickenson <steven@mrchuckles.net>
http://www.mrchuckles.net
Re: Allowing MS Outlook users to submit Bayes training messages [ In reply to ]
In OE you can set up IMAP folders and the users can copy/drop into them
directly. I don't know if Outlook can do IMAP transport itself or if you
have to go thru the Exchange server.

Loren
Re: Allowing MS Outlook users to submit Bayes training messages [ In reply to ]
On Mon, 2004-03-01 at 06:59, Steven Dickenson wrote:
> John Hardin wrote:
> > All:
> >
> > Here's what we're doing to allow Microsoft Outlook users to
> > train a global SA Bayes database:
>
> Seems like a bit much for a normal user to follow easily.

The users in my beta include fairly technically-challenged users, and
the only problem we've had so far was one instance of copying the HAM
folder to the SPAM directory on the spamassassin machine. (We get so few
false positives, y'know... :)

I cleaned that up and changed the script (attached) to be more picky
(and also to do --mbox imports) and emphasized where to put things in
the README.

After they do it a couple of times, it shouldn't be too difficult to
grasp.

> Your solution seems to be more oriented
> towards people using PST files.

It is.

--
John Hardin KA7OHZ
Internal Systems Administrator/Guru voice: (425) 672-1304
Apropos Retail Management Systems, Inc. fax: (425) 672-0192
-----------------------------------------------------------------------
Failure to plan ahead on someone else's part does not constitute an
emergency on my part.
- David W. Barts in a.s.r
-----------------------------------------------------------------------
Today: ICQ Corp goes away - have you installed Jabber yet?
Re: Allowing MS Outlook users to submit Bayes training messages [ In reply to ]
OK...and any ideas how to do this with Notes?

Another option here, is to create a shared folder on the Exchange server
allowing all users to MOVE messages to a central location.

Then attach an IMAP or POP3 user to this directory. You can run fetchmail
on the SpamAssassin gateway and pop/IMAP the messages off every day into a
cron that learns them appropriately.

CT

----- Original Message -----
From: "John Hardin" <johnh@aproposretail.com>
To: "SpamAssassin list" <spamassassin-users@incubator.apache.org>
Sent: Wednesday, February 25, 2004 3:06 PM
Subject: Allowing MS Outlook users to submit Bayes training messages


> All:
>
> Here's what we're doing to allow Microsoft Outlook users to
> train a global SA Bayes database:
>
> 1) Add "spam", "spam.old", "invalid-format-spam", "ham",
> "ham.old" and "invalid-format-ham" subdirectories to the
> spamd home directory.
>
> 2) Share the spamd home directory via samba, using the name
> "spamassassin". I have the permissions such that only the
> "spam" and "ham" directories can be accessed for writing.
> I've also set up an alias so that \\spamassassin refers to
> the mail server (regardless of what it's actually named) -
> you might want to do the same.
>
> 3) I have the attached README file in the spamd home dir,
> where people can read it via the spamassassin share. This
> contains the instructions for how to submit messages for
> training.
>
> 4) I run the attached spamassassin_training script from
> cron.daily.
>
> 5) You will need the "readpst" program from:
> http://sourceforge.net/projects/ol2mbox
> Download the libpst package, apply the blank lines patch
> from:
> http://sourceforge.net/tracker/?group_id=18756&atid=318756
> compile, and copy the readpst program to /usr/local/bin.
>
> You could skip the break-pst-mbox-out-to-individual-messages
> step and just run "sa-learn --mbox" across the mbox file. I
> may do that sometime...
>
>
> --
> John Hardin KA7OHZ
> Internal Systems Administrator/Guru voice: (425) 672-1304
> Apropos Retail Management Systems, Inc. fax: (425) 672-0192
> -----------------------------------------------------------------------
> Failure to plan ahead on someone else's part does not constitute an
> emergency on my part.
> - David W. Barts in a.s.r
>