On Fri, 1 Feb 2013, Ben Johnson wrote:

John, thanks for pointing-out the problems associated with re-sending
the messages via sendmail.

I threw a line out to the Dovecot users group and learned how to move
messages without going through the MTA. Dovecot has a utility
executable, "deliver", which is well-suited to the task.

For those who may have a similar need, here's the Dovecot Antispam pipe
script that I'm using, courtesy of Steffen Kaiser on the Dovecot Users
mailing list:

---------------------------------------
#!/bin/bash

mode=
for opt; do
        if test "x$*" == "x--ham"; then
                mode=HAM
                break
        elif test "x$*" == "x--spam"; then
                mode=SPAM
                break
        fi
done

if test -n "$mode"; then
        # options from http://wiki1.dovecot.org/LDA
        /usr/lib/dovecot/deliver -d u...@example.com -m Training.$mode
fi

exit 0
---------------------------------------

That seems a lot better.

Regarding the second point, I'm not sure I understand the problem. If
someone drags a message from Trash to SPAM, shouldn't it be submitted
for learning as spam?

The last sentence sounds like somewhat of a deal-breaker. Doesn't my
whole strategy go somewhat limp if ham cannot be submitted for training?

John and RW, do you recommend enabling or disabling the append option,
given the way I'm reviewing the submissions and sorting them manually?

I think they're proceeding from the assumption of *un-reviewed* training, i.e. blind trust in the reliability of the users.

If it's possible to enable IMAP Append on a per-folder basis then enabling it only on your training inbox folders shouldn't be an issue - the messages won't be trained until you've reviewed them.

Without that level of fine-grain control I still don't see an issue from this if you can prevent the users from adding content directly to the folders that sa-learn actually processes. If IMAP Append only applies to "shared" folders then there shouldn't be a problem - configure sa-learn to learn from folders in *your account*, that nobody else can access directly.

--
 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
-----------------------------------------------------------------------
  Gun Control laws aren't enacted to control guns, they are enacted
  to control people: catholics (1500s), japanese peasants (1600s),
  blacks (1860s), italian immigrants (1911), the irish (1920s),
  jews (1930s), blacks (1960s), the poor (always)
-----------------------------------------------------------------------
 Today: the 10th anniversary of the loss of STS-107 Columbia

Reply via email to