123

Creating a new Content Filter rule in MDaemon

Creating a new Content Filter rule in MDaemon

This dialog is used for creating Content Filter Rules. It is reached by clicking the New Rule button on the Content Filter dialog.

Name This Rule

Type a descriptive name for your new rule here. By default it will be called 'New Rule #n'.

Define New Content Filter Rule

Conditions...

This box lists the conditions that m

ay be applied to your new rule. Click the checkbox corresponding to any condition that you want to be applied to the new rule. Each enabled condition will appear in the Rule Description box below. Most Conditions will require additional information that you will specify by clicking on the Condition’s hyperlink in the Rule Description box.

If the FROM HEADER contains - Select this option to have the rule analyze the FROM: header. You must specify the text for which to scan.

If the TO HEADER contains - Select this option to have the rule analyze the TO: header.  You must specify the text for which to scan.

If the SUBJECT HEADER contains - Click this condition to base your rule on the subject header. You must specify the text for which to scan.

If the CC HEADER contains - Select this option to have the rule analyze the CC: header.  You must specify the text for which to scan.

If the REPLY-TO HEADER contains - Select this option to have the rule analyze the REPLY-TO: header. You must specify the text for which to scan.

If the user defined [#] HEADER contains - Select this option to have the rule analyze a header you specify. You must specify the header and the text for which to scan.

If the MESSAGE BODY contains - This option makes the contents of the message body one of the conditions. This condition requires you to specify a text string for which to search.

If HEADER contains word from a file - Click any of these options to base your rule on the content of those particular message headers. This condition requires you to specify a file that contains the desired text string(s).

If HEADER doesn't contain word from a file - Click any of these options to base your rule on the content of those particular message headers. This condition requires you to specify a file that contains the desired text string(s).

If the MESSAGE BODY contains words from a file - This option makes the contents of the message body one of the conditions. This condition requires you to specify a file that contains the desired text string(s).

If the MESSAGE BODY doesn't contain words from a file  - This option makes the contents of the message body one of the conditions.  This condition requires you to specify a file that contains the desired text string(s).

If the MESSAGE has Attachment(s) - When this option is selected, the rule will be contingent upon the presence of one or more message attachments. No additional information is required.

If the MESSAGE SIZE is greater than - Click this option if you want the rule to be based upon the size of the message. The size must be specified in KB. Default is 10KB.

If the MESSAGE HAS A FILE called - This option will scan for a file attachment with a particular name. The filename must be specified. Wildcards such as *.exe and file *.* are permitted.

If the Message has an Attachment with a CONTENT-TYPE of - When this option is check, the rule will be contingent on the Content Type of the attachment.

If the message is INFECTED - This condition is TRUE when AntiVirus for MDaemon determines that a message is infected with a virus.

If Exit Code from Run a program is equal to - If a previous rule in your list utilizes the Run Process action, you can use this condition to look for a specific exit code from that process.

If the Spam Filter score is equal to - This condition looks at the spam score of the message as determined by the Spam Filter.

If the MESSAGE IS DIGITALLY SIGNED - This condition applies to messages that have been digitally signed. No further information is required by this condition.

If there's a PASSWORD PROTECTED ZIP FILE -  If the message contains a password protected ZIP file, the actions configured will be performed.

If SENDER is a member of GROUP... - If the sender of the message is a member of a group defined in MDaemon, the configured actions will be performed.

If RECIPIENT is member of GROUP... - If the recipient of the message is a member of a group defined in MDaemon, the configured actions will be performed.

If ALL MESSAGES - Click this option if you want the rule to be applied to all messages. No further information is required; this rule will affect every message except those to which a 'Stop Processing Rules' or 'Delete Message' action has been applied in a previous rule.

Select actions for this rule

MDaemon can perform these actions if a message matches the rule’s conditions. A few Actions will require additional information that you will specify by clicking on the Action’s hyperlink in the Rule Description box.

DELETE the Message - Selecting this action will cause the message to be deleted. Any further actions selected after deletion will not be processed (so put this action last if need be).

STRIP All Attachments From Message - This action causes all attachments to be stripped from the message.

MOVE Message To Bad Message Directory - Click this action to cause a message to be moved to the bad message directory. Any further actions selected after a MOVE will not be processed (so put this action last if need be).

SKIP the next 'n' Rules - Selecting this action will cause a specified number of rules to be skipped. This is useful in situations where you may want a rule to be applied in certain circumstances but not in others.

For example: you may wish to delete messages that contain the word 'Spam', but not those that contain 'Good Spam'. To accomplish this you could create a rule that deletes messages containing 'Spam' and then place above it another rule that states 'if the message contains 'Good Spam' then Skip 1 Rule'.

STOP Processing Rules - This action will skip all remaining rules.

COPY Message to Specified User(s) - Causes a copy of the message to be sent to one or more recipients. You must specify which recipients are to receive the message.

Append a corporate signature - This action makes it possible for you to create a small amount of text that will be appended as a footer to the message. Alternatively, it can add the contents of a text file.

For example: you could use this rule to include a statement that says 'This email originated from my company, please direct any complaints or questions to me@mycompany.com'.

ADD an Extra Header [#] to Message - This action will add extra header to a message. You must specify the header that you wish to add.

Delete a Header {#] From Message - This action will remove a header from a message. You must specify the header that you wish to delete.

Send a Note [#] To... - This action will send an email to a particular address. You will be able to specify the recipient, sender, subject, and a small amount of text. You can also configure this action to attach the original message to the note.

For example: you might wish to create a rule that will move all messages containing 'This is Spam!' to the bad message directory and create another rule that will send a note to someone letting them know that this has been done.

Remove any Digital Signature - Click this action to cause a digital signature to be removed from the message.

Run a program... - This action can be used to run a particular program when a message meets the rule’s conditions. You must specify the path to the program that you wish to run. You can use the $MESSAGEFILENAME$ macro to pass the name of the message to the process, and you can specify whether or not MDaemon should suspend its operations temporarily or indefinitely while it waits for the process to terminate. Further, you can force the process to terminate and/or run it in a hidden window.

Send Message through SMS Gateway… - Click this option to send the message through an SMS Gateway Server. You must supply the Host or IP Address and the SMS phone number.

COPY Message to Folder… - Use this option to place a copy of the message into a specific folder.

MOVE the message to custom QUEUE... - If you are using custom queues in MDaemon, you may use the content filtering system to move messages into your custom queues.

Add Line To Text File - This option will cause a line of text to be added to a specific text file. When choosing this action you will have to specify the path to the file and the text that you want to be appended to it. You may use certain MDaemon macros in your text to cause the content filter to dynamically include information about the message such as the sender, recipient, message ID, and so on. Click the Macros button on the 'Add line to text file' dialog to display a list of permitted macros.

COPY Message to a Public Folder… - Use this option to place a copy of the message into a specific public folder.

MOVE Message to Public Folder… - Use this action to cause the message to be moved into a specific public folder.

Search and Replace Words in a HEADER - This option will search the headers for a word and replace it with a word that you specify.

Search and Replace Words in BODY - This option will search the message body for specific words and will replace them with words that you specify.

Jump to a Rule... - This option will for the rule to jump to another rule you specify.

Send an Instant Message - With this option you can send and instant message to anyone on the MDaemon server via ComAgent.

Add to Windows Event log - Add information to the Windows Event Viewer. You can use Macros to to publish information from an email to Windows Event Viewer.

Extract attachments to folder - This will remove the attachments from the email and extract then to a specific folder.

Change message processing priority - With this option you can change the priority of an email message

Sign with DomainKeys selector - Use this action if you want the rule to cause a message to contain a DomainKeys signature. You can also use it if you wish to sign some messages using a selector other than the one designated on the DK & DKIM dialog.

Sign DKIM selector - Use this action if you want the rule to cause a message to contain a DKIM signature. You can also use it if you wish to sign some messages using a selector other than the one designated on the DK & DKIM dialog.

Actions process in sequential order and stop if the message is moved or deleted.

The box below conditions and actions displays the new rule’s internal script format. Click any of the rule’s conditions or actions (listed as hyperlinks) and the appropriate editor will be opened for specifying any needed information.

Rule description

This box displays the new rule’s internal script format. Click any of the rule’s conditions or actions (listed as hyperlinks) and the appropriate editor will be opened for specifying any needed information.