Views:

Before the configuration, understand that emails have envelope and header senders.

The following is an example of an envelope sender:

MAIL FROM:<admin@example.com>
250 2.1.0 Ok
RCPT TO:<test@domain.com>
250 2.1.5 Ok

An example of a header sender:

From: admin <admin@example.com> 
To: test <test@domain.com>

To block emails with empty sender address:

  1. Log in to the IMSVA Linux Shell.
  2. Use “vi” to edit /opt/trend/imss/config/imss.ini using the command:

    # vi /opt/trend/imss/config/imss.ini

  3. Search for “blockEmpty”. When you see the parameter blockEmptyMailFrom, set the value to “yes”:

    blockEmptyMailFrom = yes

  4. Save the file and restart imssd using the following command:

    # S99IMSS restart

  1. On the Web management console, go to Policy > Policy List.
  2. Click Add > Other to add a new rule.
  3. Set the senders and recipients as you want (Here senders mean envelop senders.). Click Next.
  4. On the Select Scanning Conditions page, click Header keyword expressions.
  5. Select From then click Add to add a keyword expression.
  6. Add the content as “^(\s)*$” (without the quotation marks).
  7. Choose an action for these mails. In this scenario,  select Quarantine to block the empty header sender.
  8. Provide a name for this rule.