Block null senders

Post your MailEnable suggestions here.
Post Reply
virmix
Posts: 72
Joined: Tue Nov 10, 2015 12:12 am

Block null senders

Post by virmix »

New Rule or Block System.

When sender try more of 4 times (in 72h) send email with null senders block IP and EHLO
dcol
Posts: 264
Joined: Fri May 26, 2017 11:25 pm

Re: Block null senders

Post by dcol »

I know this post is old, but I have a suggestion to block NULL senders without affecting Mailenable local messages.

Create new Message Manager Filter using the following

Name of Filter: Block NULL
-----------------
Critera script

FilterResult = 0

' Check if the IP is intenal
If CriteriaMet([ME_IPADDRESS], "127.0.0.1") Then
FilterResult = 0

' Check if the envelope sender is empty (Null Sender)
ElseIf CriteriaMet ([ME_FROM], "<>") OR CriteriaMet ([ME_FROM], "") Then
FilterResult = 1

End If
-----------------
Actions

Delete Message
Stop Processing Filters
-----------------

You can optionally add actions to forward the message to a special inbox for inspection.
Reply if this works for you.
Post Reply