This misses a lot of mail from certain political activism organizations
(because their mail looks highly spammy), and dspam never gets much
chance to train it (even using TOE and retraining it via manual
redirect) largely because there are a host of different senders for each
organization, and the actual sender address is heavily obfuscated by
their list management software and does not match the "From:" header. I
bounce them to my retraining alias, but they frequently wind up not
getting actually redelivered.
For known sending organizations that I have independently verified, is
there a syntax that I can use in this invocation to force dspam to
classify the message as innocent? I'm thinking something like the
if [ (sender is known to be legit but problematic) ] ; then
# Force whitelisting for certain known senders
echo "$(date '+%F %T'): Mail to $4 from $2" >>
/usr/bin/dspam --deliver=innocent,spam --feature=whitelist
--stdout --user $USER | /usr/lib/sendmail -i "$@"