-
Some unwanted mails have been getting through the spam filter so I read a bit about Sieve scripts and created the following script (Settings > Sieve Scripting > Scripts): require "fileinto";
if anyof (
address :domain :is "from" "example1.com",
allof (
address :domain :is "from" "example2.com",
header :contains "subject" "[ad]"
)
) {
fileinto "Junk Mail";
stop;
} I used Fastmail's Sieve tester to check it against different sets of relevant headers from the actual mails I got from those domains and it passed; however, it doesn't seem to work in Stalwart. I'm new to all this; could someone please point out to me what's wrong with my script? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You need to upload this script to your account using the ManageSieve or JMAP for Sieve protocols. The scripts you manage from the webadmin operate on the SMTP transaction and don't have access to the |
Beta Was this translation helpful? Give feedback.
You need to upload this script to your account using the ManageSieve or JMAP for Sieve protocols. The scripts you manage from the webadmin operate on the SMTP transaction and don't have access to the
fileinto
action.