Userguide
Table of Contents
Go To the Program Website
Scope of recipients
Before CodeTwo Exchange Rules PRO processes the message and performs any actions, it checks the defined conditions. If the message meets the defined conditions, then it is processed. If not, the rule will not apply and no action will be taken. Apart from the condition it is possible to define exceptions. If the defined exception is met then the rule will not be applied. One of the available exceptions checks the scope of recipients. To define the Scope of recipients on the Exceptions tab click Add and choose Scope of recipients (Fig.1.).

Choosing Scope of recipients on the Exceptions tab.
Fig.1. Choosing Scope of recipients on the Exceptions tab.


The Scope of recipients will be added to the list of exceptions in the middle pane, while the right pane will show the exceptions properties (Fig.2.). Click Add to define the recipients. The following options are available to define the scope of recipients: e-mail address, Active Directory group and users, organizational unit, internal and external to the organization, unknown address and disabled users in Active Directory (Fig.3.).

Scope of recipients on the list of exceptions.  List of available options to define Scope of recipients.
Fig.2. Scope of recipients on the list of exceptions. Fig.3. List of available options to define Scope of recipients.


By default the program will skip the message and will not apply the rule if any of the criteria specified in the list of exceptions are met (there is a logical OR relationship between the exceptions). In the example below the rule will be applied when user is the Administrator (Fig.4.) or the message type is: new mail message or reply/forward message (Fig.5.) i.e. the message must meet Exception #1 or Exception #2 for the rule to be skipped and not be applied. .

Exception #1: the user is the Administrator.. Exception #2: message type is: new, reply or forward.
Fig.4. Exception #1: the user can be the Administrator. Fig.5. Exception #2: message type can be: new, reply or forward.


You can change the logic of exceptions to check when you click on the word ANY. The word ANY will be replaced by ALL, which means that the rule will apply only if all the exceptions are met (there is a logical AND relationship between the exceptions). In the example below the rule will not be applied if the user is the Administrator (Fig.6.) and the message type is: new mail message or reply/forward (Fig.7.) i.e. the message must meet both Exception #1 and Exception #2 for the rule to be skipped and not be applied.

Exception #1: the user is the Administrator.  Exception #2: message type is: new, reply or forward.
Fig.6. Exception #1: the user is the Administrator. Fig.7. Exception #2: message type is: new, reply or forward.


Below you can read about all available options to define the Scope of recipients:

E-mail
If you want to define the recipients' address or addresses for the program to check before processing any messages, you need to choose Add, and then E-mail (Fig.8.). In the new window (Fig.9.) you can type e-mail addresses separated by semi-colon, or domain address with an asterisks (*) to include multiple addresses from the same domain.

Choosing e-mail address for the scope of recipients. Defining the recipient's e-mail address.
Fig.8. Choosing e-mail address for the scope of recipients. Fig.9. Defining the recipients' e-mail address.

Active Directory Group
If you want to define a group of recipients from the Active Directory you need to choose Add (Fig.10.), and then Active Directory Group. In the new window (Fig.11.), you can search for the desired group of recipients (in this example it is the group of Administrators)

Choosing group in Active Directory. Searching and defining group in Active Directory.
Fig.10. Choosing group in Active Directory. Fig.11. Searching and defining group in Active Directory.

Active Directory Filter
Another useful option is the properties filter to use in Active Directory. If you want to use this option choose Add, and then Active Directory Properties Filter (Fig.12.). In the new window you can define various fields. In this example the exception is: if the AD field Country equals USA then the rule will not be applied (Fig.13.). Additionally you may check whether one of the exceptions above is met or all the exceptions are met from the properties' filter list.

Choosing properties filter in w Active Directory. Properties filter window in  Active Directory.
Fig.12. Choosing properties filter in w Active Directory. Fig.13. Properties filter window in Active Directory.

Active Directory User
You can also search for a specified user in Active Directory. In order to do it, you need to choose Add, and then select Active Directory User (Fig.14 & 15.).

Choosing an option to search for a user in Active Directory. Searching specified user in Active Directory.
Fig.14. Choosing an option to search for a user in Active Directory. Fig.15. Searching specified user in Active Directory.

Organizational Unit
If you want to define an Organizational Unit for the scope of senders you need to choose Add, and then select Organizational Unit (Fig.16 & 17.).

Choosing option to search for Organizational Unit. Window to search for Organizational Unit.
Fig.16. Choosing option to search for Organizational Unit. Fig.17. Window to search for Organizational Unit.

Internal Users
It is also possible to use all internal users as the scope of recipients for the exception. To use this option you need to choose Add, and then select Internal User (Fig.18 & 19.). This element doesn't have any additional options, it is only displayed on the exceptions list (Fig.19.)

Choosing the option for internal users. The rule will not be applied for internal users.
Fig.18. Choosing the option for internal users. Fig.19. The rule will not be applied for internal users.

External Users
Similarly, you can define the external users. To set it up, choose Add, and then select External User (Fig.20.).

Choosing the option for external users. The rule will not be applied for external users.
Fig.20. Choosing the option for external users. Fig.21. The rule will not be applied for external users.

Unknown Address
Another option is an exception for users with unknown address. You can activate it when you choose Add, and then select Unknown address (Fig.22 & 23.).

Choosing the exception for the unknown address.. The rule will not be applied for the unknown address.
Fig.22. Choosing the exception for the unknown address. Fig.23. The rule will not be applied for the unknown address.

Disabled AD User
The last element for the scope of recipients exception is for the disabled users in Active Directory. If you want to use it, you need to choose Add, and then select Disabled in AD (Fig.24 & 25.).

Choosing the exception for the disabled user in Active Directory. The rule will not be applied for the disabled user in Active Directory.
Fig.24. Choosing the exception for the disabled user in Active Directory. Fig.25. The rule will not be applied for the disabled user in Active Directory.