SOLVED Creating new exim rule for filtering spam

rs200

Active Member
Dec 4, 2017
42
10
8
Italy
cPanel Access Level
Root Administrator
Hi,

i need to add a new rule in exim configuration for filtering spam that has a particulary subject.

I read How to create a custom filter rule file but i can't understand how to name the new file.

In the /usr/local/cpanel/etc/exim/sysfilter/options/ dir i have some files, for example "fail_spam_score_over_100", "fail_spam_score_over_200", "spam_rewrite", etc...

Have i create a file named with a specific name?

And is this correct the above syntax to block the email with the subject "The subject"? Thanks

Code:
if
   $header_subject: contains "The Subject"
then
   if error_message then save "/dev/null" 660 else fail "No spam here" endif
   finish
endif