Script Filter - Block Outside sending

Discussion forum for Enterprise Edition.
Post Reply
Posts: 18
Joined: Tue Feb 10, 2015 2:52 pm

Script Filter - Block Outside sending

Post by tstrip111 » Wed Oct 19, 2016 8:19 pm

I have the following script filter in place and working:

If CriteriaMet([ME_FROM],"**") AND _
not CriteriaMet([ME_TOorCC],"<REFERENCE><FILE>domains.txt</FILE><PATH>E:\Program Files (x86)\Mail Enable\Config\Filters\Patterns</PATH><REFERENCE>") THEN
End If

But users are still able to send outside by putting the email address in the BCC field. I noticed there is not a criteria token for the BCC field. How would that properly be applied to the above script?

Site Admin
Posts: 9253
Joined: Mon Mar 22, 2004 4:44 am
Location: Melbourne, Victoria, Australia

Re: Script Filter - Block Outside sending

Post by MailEnable-Ian » Fri Oct 21, 2016 3:00 am


What version of MailEnable you running? Ensure your on the latest as I believe there fixes in this area of filtering criteria. The TOandCC criteria is used for BCC as well therefore this should work.

Ian Margarone
MailEnable Support

Posts: 16
Joined: Tue May 01, 2012 10:37 am

Re: Script Filter - Block Outside sending

Post by listvan » Thu Jan 12, 2017 7:49 am


I`ve used the same script which you have mentioned, I used " " domain for example.
I have tested ,,,sent an email from my account to my personal yahoo mail account but unfortunately I have received the mail.

I would like to archive the followings:

I`m looking for a solution how to block a recipient domain.
User`s sometimes sending emails to wrong domains and I would like to block this action. Exp exampl1 (our domain) is been block to send send email to the recipient domain example2 ( client domain)

KInd regards,
Istvan Lokodi

Post Reply