Filter Script for detect spammer or posible spam (Work)

Discussion for developers using MailEnable.
Post Reply
virmix
Posts: 66
Joined: Tue Nov 10, 2015 12:12 am

Filter Script for detect spammer or posible spam (Work)

Post by virmix »

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.

Post Reply