Filtering Countries

Discussion forum for Enterprise Edition.
Post Reply
SantaPhil
Posts: 15
Joined: Wed Dec 18, 2019 8:16 pm

Filtering Countries

Post by SantaPhil »

One of our mailboxes got hit with an email subscription bomb and is receiving approximately 10,000 emails per hour from all over the world.


I added some subject line filters but that only scratches the surface as far as reducing the amount of mail coming in. I then tried to add a filter to restrict countries that send to us however I notice that it only allows one country at a time in the dropdown selector box. I would have to add a separate filter for each country. Is there a better way to restrict the other countries? We can get away with mail only from the US and Canada and is there a way to only restrict it to that particular mailbox instead of domain wide?

I see that it can handle scripts but I am not familiar with the instructions that the system uses, is there a document with the instructions and command syntax that I can look at?

Thanks for your help with this,

Phil

MailEnable-Ian
Site Admin
Posts: 9738
Joined: Mon Mar 22, 2004 4:44 am
Location: Melbourne, Victoria, Australia

Re: Filtering Countries

Post by MailEnable-Ian »

Hi,

You could create a script filter like the example below:

Code: Select all

If not CriteriaMet([ME_COUNTRY_NOMATCH],"*US*") AND _
CriteriaMet([ME_COUNTRY_NOMATCH],"*CA*") then
FilterResult=1
End If
Regards,

Ian Margarone
MailEnable Support

SantaPhil
Posts: 15
Joined: Wed Dec 18, 2019 8:16 pm

Re: Filtering Countries

Post by SantaPhil »

Thanks Ian, is there any documentation that describes how to write scripts like that? Instruction list, syntax etc?

MailEnable-Ian
Site Admin
Posts: 9738
Joined: Mon Mar 22, 2004 4:44 am
Location: Melbourne, Victoria, Australia

Re: Filtering Countries

Post by MailEnable-Ian »

Hi,

https://www.mailenable.com/documentation/10.0/Enterprise/Enumerations%20requiring%20the%20CriteriaMet%20syntax.html#
Regards,

Ian Margarone
MailEnable Support

SantaPhil
Posts: 15
Joined: Wed Dec 18, 2019 8:16 pm

Re: Filtering Countries

Post by SantaPhil »

Ian, would this work? Blocking any country not the US or Canada and going to that particular email address. All other emails would get international mail.

I noticed that the example you showed above had a "IF Not" but that was a double negative with the ME_COUNTRY_NOMATCH . The logic seemed to be off or am I missing something? Does FilterResult value of 1 pass the mail through untouched, or make it follow the actions in the filter?

If CriteriaMet([ME_COUNTRY_NOMATCH],"*US*") AND _
CriteriaMet([ME_COUNTRY_NOMATCH],"*CA*") AND _
CriteriaMet([ME_TOorCC],"test@test123.com") then
FilterResult=1
End If

MailEnable-Ian
Site Admin
Posts: 9738
Joined: Mon Mar 22, 2004 4:44 am
Location: Melbourne, Victoria, Australia

Re: Filtering Countries

Post by MailEnable-Ian »

Hi,

It should. Although you need to embrace the email address with wildcards.

I.e.: *test@test123.com*
Regards,

Ian Margarone
MailEnable Support

Post Reply