Nikolaos Milas wrote:
Hello,
I am storing spam (from Amavis) to:
$QUARANTINEDIR = '/var/blockedmail'
i.e. to '/var/blockedmail/spam/' as:
$spam_quarantine_method = "local:spam/%n-%m" ;
Question: Can I use stored spam files (e.g. "02792-01-bzM11CH7LOH8")
as they are (i.e. without any modification/conversion) to train
spamassassin for ham (of course when spam is not real spam)? That is,
can I simply move/copy such files in a "ham" directory and then train
spamassassin? Will SpamAssassin recognize these files as spam email
messages?
This is just a quarantine directory. Amavis won't do anything to it
except when you want to release a mail. If you want Amavis to re-learn a
message you'll have to send it through sa-learn or spamc, moving it to
another directory won't do anything.
If you want to release Spam you'll have to use amavisd-release: "The
utility /amavisd-release/ tells the amavisd daemon to fetch a mail from
a local quarantine, and send it to MTA through its regular channels
($notify_method), bypassing
re-checking."(http://www.ijs.si/software/amavisd/amavisd-new-docs.html).
Amavisd-new should be your last means of defense (see e.g.
http://www.postfix.org/POSTSCREEN_README.html) and 95-99% of all Spam
should already have been blocked. Because of that I just have spam
delivered to a mailbox called Spam. And I use the Dovecot antispam
plugin: when mail is moved out of Spam to another directory (except
Trash) it is retrained as Ham; when mail is from a map to Spam it is
trained as Spam, e.g. my users have to train the filter and decide what
is ham or spam.
Rgds,
N.