Delete Files Older Than - run from the command line

If you need to remove files on schedule you can run the application without the GUI interface. The application support -f command line switch to run rules in the background, for example:

"<PATH>\MSHSoftware.DeleteFilesOlderThan.exe" -f c:\settings.xml

where settings.xml file is created from Options | Export rules menu.

If you would like to automatically generate CSV report you should use -o parameter, like below:

"<PATH>\MSHSoftware.DeleteFilesOlderThan.exe" -f c:\settings.xml -o c:\reports

Learn more how to run application on schedule.

Output from --help parameter:

MSH Delete Files Older Than 1.3.0
Copyright (C) 2017 MSH Software
Usage: MSHSoftware.DeleteFilesOlderThan.exe -f settings.xml -o c:\reports\
  -f        Settings file path.
  -o        CSV reports output directory path. Optional, should be used only
            with -f parameter.
  --help    Display this help screen.

To learn more visit MSH Delete Files Older Than website.

» Read more

How to forward email to several recipients

In the previous post I described how to configure MSH Traffic Policy milter application to redirect messages to another recipient based on the message subject. Today I will show how adjust actions to forward an email message to several persons, not only one.

Please refer to the linked post how to create a rule and define conditions, in this post I will only modify actions. Modify Forward Action Edit already created rule. Select rule and click Actions button and select Edit menu. Add second envelope recipient to the message, click Add button and Add Envelope Recipient menu. Put email address in the address field. Click OK button.

From the list select Add Message Header entry and click Edit button. In the Header Value field put ; email address. Don’t forget about semicolon, it’s needed because we add another email address to the MIME header. Click OK button.

Click OK button to close the rule wizard and click Save All button to preserve changes.

Now when a message will match conditions it will be forwarded to two recipients. They both will receive a message as carbon copy recipients.

To learn more visit MSH Traffic Policy website.

» Read more

Redirect emails based on message subject - check two headers at time

Below you will find a description how to redirect a message based on sender and subject. We will use MSH Traffic Policy milter application which integrate with Postfix, Sendmail and Zimbra.

After installing server and desktop module we can start to create a rule which will do what we need.

Create a Rule

Start the application and connect to the mail server. Select Rules node and click Add Group button. We need to add rules group which will contain our new rule. Name it like Redirect Rules. Select our new Redirect Rules node and on the right panel click Add Rule button. Rule wizard will open.

With wizard we will define actions, conditions, exceptions and rule name. With Actions we will redirect our message, conditions and exceptions will help us to match messages which should be redirected.

Define Conditions

We will begin with conditions. In our scenario we want to redirect messages which are sent from domain and include INVOICE phrase in the message subject. The word “and” is important here, because messages which don’t have INVOICE text in subject or are not from specified domain should go through without change.

Switch to Conditions tab, click Add button and choose Message Sender – Email Address menu. Select Wildcards from drop down menu option and put * text in Email addresses text input. Click OK button.

Sender condition added, now is time for the message subject. Click Add button and this time choose Message Subject or Body contains menu. Select Subject option in Search from drop down menu. Choose Wildcards in Match text with option. Put *INVOICE* text in Word or Phrase text input. Click OK button.

At bottom of the rule wizard on Conditions tab select All condition met option.

Choose an Action

Go back to Actions page. Now we will define the action which should be taken on messages which will met our conditions.

To forward message we need to apply to actions on the message. Add Envelope Recipient and Add Message Header. It’s because envelope recipient will only modify recipients address list without adding a MIME message header. Recipient will receive a message but he/she will not see own email address in TO/CC/BCC message fields.

Click Add button and choose Add Envelope Recipient menu. Provide an email address which should receive a copy of the message. For this scenario we will use example address. Now click Add button and choose Add Message Header menu. Put CC text as Header Name and in Header Value field. Click OK button.

We had defined condition criteria to match messages and actions which should be taken. Switch to Name tab, give a rule name, like Redirect Messages from with INVOICE in subject. Click OK button to close rule wizard.

Save and Verify

To apply changes click Save All button.

Now when messages with specified phrase in subject and sent from domain will go through mail server they will automatically be also send to address. Original recipient of the message also will get the message.

To learn more visit MSH Traffic Policy website.

» Read more