Hey, I am trying to get marked spam to file into a "spam" folder. It doesn't work so can anyone confirm what I am doing is right? In dovecot.conf I have: Code: protocol lda { ... mail_plugins = sieve quota global_script_path = /home/vmail/spam.sieve ... } The spam.sieve sieve script looks like this: Code: require "fileinto"; if header :contains "X-Spam-Flag" "YES" { fileinto "INBOX.spam"; } if header :matches "Subject" ["[*SPAM*]"] { fileinto "INBOX.spam"; } I don't think the X-Spam-Flag is working so I added a header match. Still not sure if this is right. It has been compiled to spam.svbin though. I am using Maildir if that helps. I don't know how to create folders in there but the idea for this is that all email marked as [*SPAM*] don't make it into users main inbox. Thanks for any help