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 :


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";

Leave a Reply