sblantipodi wrote:
Vance wrote:
sblantipodi wrote:
I can't believe that I cannot put my span in a trash folder
for a quarantine and automatically remove it every seven days...
Sorting messages and delivering them into different folders is typically the job of an
MDA such as procmail. To get it to operate on messages identified as spam, you'll want to set it to look for the headers that Spamassassin adds, such as "X-Spam-Flag," "X-Spam-Level," and "X-Spam-Status."
do you know if is there a guide on how to do that?
thanks.
in my main.cf I set
Code:
mailbox_command = /usr/bin/procmail -a "$USER"
then in the user directory .procmailrc
Code:
# Spam via SpamAssassin
:0
*^X-Spam-Flag:.*YES
{
:0
*^X-Spam-Status:.*autolearn=no
{
:0
*!^X-Spam-Status:.*BAYES_99
mail/spam/learn
}
:0
*^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
mail/spam/sure
:0
mail/spam/probable
}
In that way should work but it seems that amavisd puts the SPAM in quarantine before than postfix move it into spam folder.
Is there a way to avoid using procmail and use amavisd to move the quarantined mail to my Maildir/.Trash directory?
I know that amavisd has a quarantine dir, but in amavisd.conf it seems that I cannot modify the original quarantine dir path or service doesn't starts well...
Is there also a way to makes amavisd/spamassassin to not compress spam into .gz format?