TLD filtering question?

Discussion forum for Enterprise Edition.
Post Reply
Posts: 243
Joined: Wed Nov 04, 2009 1:39 am

TLD filtering question?

Post by kiamori » Fri May 22, 2020 7:25 pm

We have a custom rule setup to filter some Top Level Domains. For example

Script is:

Code: Select all

If CriteriaMet([ME_HEADERS_CONTAIN],"<REFERENCE><FILE>TLD.txt</FILE><PATH>D:\ME\Config\Filters\Patterns</PATH><REFERENCE>") Then
End If
inside of the TLD.txt file we have

Code: Select all

but for some reason its not triggering. What is the problem here?

Posts: 243
Joined: Wed Nov 04, 2009 1:39 am

Re: TLD filtering question?

Post by kiamori » Sat May 23, 2020 10:49 pm

In the mean time I've updated the SMTP-Inbound.VBS script found under Services > SMTP > Properties > Advanced SMTP

I added the following script:

Code: Select all


for each DomainName in Blacklist

if InStr("%SENDER%","."&DomainName&"]")>0 then
ME_ResultData="554 5.7.1 ."&DomainName&" domains not allowed to send email to this server."&Chr(13)&Chr(10)
Exit Function
end if
within the

Code: Select all

function ME_MAIL()
just above the

Code: Select all

ME_MAIL = ME_Success

end function
Which works to block all emails from these TLD's but in some cases we don't want to block them entirely just mark them as spam so having the filters work correctly is a requirement.

Post Reply