Gata, am facut, asa ca mai jos. Merge daca pe server mesajele sunt
tinute in format mbox, adica practic, cu uw-imap, lasat default, fara
alte configurari.
mkdir /var/lib/spamassassin ; chmod si chown dupa gust
/etc/mail/spamassassin/local.cf:
bayes_path /var/lib/spamassassin/bayes
In /etc/cron.daily/spamassassin-training (e wrap-uit rau, dar nu mai
stau sa realiniez)
for USERNAME in `ls -A /home` ; do
# if the user has IMAP--ie the file .mailboxlist
if [ -e /home/$USERNAME/.mailboxlist ] ; then
if [ -e /home/$USERNAME/spam-undetected ] ; then
# for each user that has created a spam-undetected folder, learn
as spam
sa-learn --spam --mbox /home/$USERNAME/spam-undetected > /dev/null
# delete the contents after learning from it
> /home/$USERNAME/spam-undetected
fi
cat /home/$USERNAME/.mailboxlist | while read FOLDER ; do
# for each folder that is created by the user, learn as ham
# INBOX cannot be used because it might contain spam not yet moved by
# the user to spam-undetected
if [ "$FOLDER" != INBOX -a "$FOLDER" != Drafts -a "$FOLDER" !=
Trash \
-a "$FOLDER" != Sent -a "$FOLDER" != "Sent Items" ] ; then
sa-learn --ham --mbox "/home/$USERNAME/$FOLDER" > /dev/null
fi
done
fi
done
---
Detalii despre listele noastre de mail: http://www.lug.ro/