Send spam to Junk folder on Synology NAS

I am currently have an Anti-Spam solution plugged in with Postfix of my NAS.

I have been looking for on how could I set/specify all spam been send to a specific folder; On the NAS, sieve is involved and used to apply action against the mailflow.

Located on your nas :

/var/packages/MailServer/target/scripts/sieve_before/move_spam.sieve

Set the potential X-Header that your solution can mark the spam. This sieve script would apply the action and send the spam to your Personal Junk folder, or others if needed.

Here is the default sieve script to do it:

require ["fileinto"];
if anyof (header :contains "X-Spam-Flag" "YES")
{
fileinto "Junk";
}

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

Menu