On Tue, 20 Jul 2010 09:42:42 +0200, Patrick Ben Koetter <p...@state-of-mind.de> wrote: > * sebast...@debianfan.de <sebast...@debianfan.de>: >> Hello, >> >> i used the tutorial >> >> http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix >> >> to integrate Spamassassin into Postfix. >> >> It works fine - but i want to put the spammails into an separate folder. > > Use a LDA (procmail, maildrop, deliver) to filter incoming mail by > SpamAssassin headers and let the LDA put the message into a subfolder. >
In case it is procmail, create a file called .procmailrc in $HOME with contents like: # Move all spam to a maildir folder called SPAM. # This folder will be created when it does not exist yet. # :0 * ^X-Spam-Status: Yes $MAILDIR/.Junk/ # Mail with spam level > 15 is automatically deleleted :0: * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* /dev/null # Delete all spam mail (use with care) #:0: #* ^X-Spam-Status: Yes #/dev/null -- Bas.