On Thu, 31 Jan 2013, Ben Johnson wrote:
On 1/15/2013 5:22 PM, John Hardin wrote:
Yes, users are allowed to train Bayes, via Dovecot's Antispam
plug-in. They do so unsupervised. Why this could be a problem is
obvious. And no, I don't retain their submissions. I probably
should. I wonder if I can make a few slight modifications to the
shell script that Antispam calls, such that it simply sends a copy
of the message to an administrator rather than calling sa-learn on
the message.
That would be a very good idea if the number of users doing training is
small. At the very least, the messages should be captured to a permanent
corpus mailbox.
Good idea! I'll see if I can set this up.
So, I finally got around to tackling this change.
With a couple of simple modifications, I was able to achieve the desired
result with the Dovecot Antispam plug-in.
Basically, I changed the last two directive values from the switches
that are normally passed to the "sa-learn" binary (--spam and --ham) to
destination email addresses that are passed to "sendmail" in my revised
pipe script.
Passing the messages through sendmail again isn't optimal as that will
make further changes to the headers. This may have effects on the quality
of the learning, unless the original message is attached as an RFC-822
attachment to the message being sent to the corpus mailbox, which of
course means you then can't just run sa-learn directly against that
mailbox - the review process would involve moving the attachment as a
standalone message to the spam or ham learning mailbox.
Ideally you want to just move the messages between mailboxes without
involving another delivery processing. I don't know enough about Dovecot
or your topology to say whether that's going to be as easy as using
sendmail to mail the message to you.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
If guns kill people, then...
-- pencils miss spel words.
-- cars make people drive drunk.
-- spoons make people fat.
-----------------------------------------------------------------------
Tomorrow: the 10th anniversary of the loss of STS-107 Columbia