Filter Script for detect spammer or posible spam (Work)

virmix
Posts: 30
Joined: Tue Nov 10, 2015 12:12 am

Filter Script for detect spammer or posible spam (Work)

Postby virmix » Sun Dec 04, 2016 5:44 pm

Go to MMC-MailEnable
Then to Messaging Manager
Click on Filters

Add new with name SPAM-CHK
Enable USE CRITERIA STRIPT and paste this

Code: Select all

FilterResult=0

if CriteriaMet([ME_DKIM],"fail") and CriteriaMet([ME_SPF],"fail") then
 FilterResult=1
end if

if CriteriaMet([ME_HEADERS_CONTAIN],"*X-RBL-Result: Generic, Fail*") and not CriteriaMet([ME_SPF],"pass") then
 FilterResult=1
end if



For test it ADD ACTION
> COPY MESSAGE TO QUARANTINE
> DELETE MESSAGE

Return to MMC in 5 hours and click on QUARANTINE FOLDER to see all message detected. If you are OK with the filter edit and unckeck COPY MESSAGE TO QUARANTINE for DELETE action only.



For me work.

Who is online

Users browsing this forum: Bing [Bot] and 2 guests