IMail - Rule that will delete junk messages without routing them to a mailbox

Product: Version: Platform:
IMail 7.0+ NT,Win2000,XP,Win2003

Question/Problem: How can I set up a rule that will simply delete any specified junk messages without routing them to a mailbox?

Answer/Solution: Starting with version 8.0. Anti-SPAM is part of IMail. Please see:
IMail Server 8.2 User's Guide - Using Delivery Rules to Filter Spam

Put rules in your rules.ima like this:

F~filtered from address:NUL
B~filtered body content:NUL

And so on...

As .vbs and script viruses are turning up, a customer suggests these rules:

B~name=.{1,64}\.exe:spambox
B~name=.{1,64}\.scr:spambox
B~name=.{1,64}\.vbs:spambox
B~name=.{1,64}\.shs:spambox
B~name=.{1,64}\.com:spambox

(That is, filter messages if name= is followed by .com within the next sixty four characters.)

B~begin 6.{1,64}\.exe":spambox
B~begin 6.{1,64}\.scr:spambox
B~begin 6.{1,64}\.vbs:spambox
B~begin 6.{1,64}\.shs:spambox
B~begin 6.{1,64}\.com:spambox

'begin 6' is for Uuencoded attachments, characterized by the string: Begin 6

These rules include the \s text pattern to search for "any white space" (spaces, tabs or Carriage Returns) after an attachment extension. Without this pattern, the number of false positives will rise, principally due to html attachments tripping up on the UUencoding rule.

Filtered messages will be directed to a sub-mailbox, (spambox.mbx) in the user's folder for the user to whom the message was addressed.

Note that Rules scan only the first 32K of a message.

It is necessary to stop and restart the SMTP service after modifications to
rules.ima to activate the new filter settings. In version 8, also stop and restart the Queue Manager service.

See also: IMail Server 8.2 User's Guide - Setting Up Delivery Rules

Document #: Revision Date:
IM-19990609-DM06 08/19/05
tools: | Furl this page

Return To KnowledgeBase Search Page