How to set up header-based routing
The procedure described below is only applicable for NoSpamProxy up to version 13.x. If you are a user of NoSpamProxy version 14 or higher, send a request to our support team.
Starting with NoSpamProxy 9.2, header-based routing is available. The setting is only configurable via the configuration file itself. In order to use header-based routing, proceed as follows:
- Create a connector for the respective emails.
- Edit the files “Intranet Role.config” and “Gateway Role.config” in the directory “C:\ProgramData\Net at Work Mail Gateway\Configuration\” as explained in steps 3 to 5.
- In the respective files, search for the connector that you created in the first step.
- In the connector settings, find the following tag:
<headerMatches comparisonMode="Or" />
- Modify the tag to look like this:
<headerMatches comparisonMode="Or">
<match headerName="name" value="value" />
</headerMatches>
Now you can make the appropriate settings. You can also search for several header values and combine the search function with an AND operator. The entry will look as follows:
<headerMatches comparisonMode="And">
<match headerName="name" value="value" />
<match headerName="name" value="value" />
<match headerName="name" value="value" />
</headerMatches>
Also make this change in the “Gateway Role.config” file.
IMPORTANT
Before you save the configuration file, you must stop the corresponding service. Only then can you save the configuration file properly.