How to block mail with an empty From, To, or Subject field

  • 7020558
  • 20-Oct-2009
  • 07-Aug-2017

Environment


GWAVA4 (any build)

Situation

I do not want to receive mail with an empty From, To, or Subject.

Resolution

*NOTE*
A word of caution must be issued with this TID since leaving an empty From, To, or Subject does not necessarily mean the message will always be spam.  GWAVA uses multiple layers of scanning to weed out spam as well as to minimize the chance of false positives.  This is why GWAVA does not ship with a prebuilt configuration to block a message due to an empty field; quite often a valid sender may have left an empty subject out of a message due to a moment of carelessness. 

To block any mail with an empty From, To, or Subject, a Regex entry can be created for MIME header filtering.

1) In GWAVA Management Console, browse to Server/Scanner Management -> Manage Scanner -> Scanning Configuration -> MIME filtering ->  message header filter.

2) In Add New Filter field, enter this text:

/^(From|To|Subject):\s"?"?\s?$/

3) Set events to be triggered to Block and Quarantine.

 

4) Click the Green + icon to add the new entry and then Save.

The filter you've created here is different than the From and To address that GWAVA reads for address filtering and exceptions.  GWAVA reads the SMTP mail from and recipient to addresses while the above will only scan the header that is shown when viewing the message in a GroupWise client.  This is why GWAVA may show a different From and Recipient when viewing the message in QMS.

**Note**
Although this TID requires the use of Regex in GWAVA, we do not offer customer support on it's creation or use.  If you would like to learn more about Regex, we've provided some links below to get started.

Helpful Regex links:
http://regexlib.com/CheatSheet.aspx
http://www.regular-expressions.info/tutorial.html

 

Additional Information

This article was originally published in the GWAVA knowledgebase as article ID 1501.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.