Clean up your test environment
The policy you configured and used in this section may interfere with the policies discussed in the sections that follow. To prevent this issue, you should block the effect of the E-mail Alias Generation policy on your test domain before you proceed to the next sections.
To block the effect of the E-mail Alias Generation policy
- In the Active Roles console, right-click your test domain, and click Enforce Policy.
- In the Active Roles Policy window, locate the list entry named E-mail Alias Generation, and select the Blocked check box in that entry.
- Click OK to close the Active Roles Policy window.
Use an E-mail Alias Generation policy
To implement the scenario described in this section, you must have a supported Microsoft Exchange Server version installed in your test Active Directory forest. For the list of Exchange Server versions supported by Active Roles, see System requirements in the Active Roles Release Notes.
You can use a policy of the E-mail Alias Generation category to automate the assignment of the e-mail alias when designating a user as mailbox-enabled on Microsoft Exchange Server. By default, Microsoft Exchange Server provides for the following recipient e-mail address format: <alias>@<domain>. You can use pre-defined rules to generate e-mail aliases, or configure custom rules. Custom rules provide for addition of an incremental numeric value to ensure uniqueness of the alias.
The policy described in this scenario generates the e-mail alias in accordance with this rule: user first name, optionally followed by a three-digit uniqueness number, followed by a period, followed by the user last name. Examples of aliases generated by this rule are as follows:
- John.Smith
- John001.Smith
- John002.Smith
The policy generates the alias John001.Smith for the user John Smith if the alias John.Smith is in use. If both John.Smith and John001.Smith are in use, the policy generates the alias John002.Smith, and so on.
The following two sections elaborate on the steps to implement this scenario.
Create and apply the Policy Object
You can create and apply the Policy Object using the Active Roles console as follows.
To create and apply the Policy Object
- In the console tree, expand Configuration | Policies, right-click Administration, and select New | Provisioning Policy.
- On the Welcome page of the New Provisioning Policy Object wizard, click Next.
- In the Name box, type the name of the Policy Object: E-mail Alias Generation. Click Next.
- On the Policy to Configure page, click E-mail Alias Generation. Click Next.
- On the E-mail Alias Generation Rule page, click Other combination of user properties, and then click Configure.
- In the Configure Value dialog box, click Add.
- In the Add Entry window, configure the entry to include the user first name:
- Under Entry Type, click User Property.
- Under Entry Properties, click Select.
- In the Select Object Property window, click First Name in the Object property list, and then click OK.
- Click OK.
- In the Configure Value dialog box, click Add.
- In the Add Entry window, configure the entry to optionally include a uniqueness number:
- Under Entry type, click Uniqueness Number.
- Under Entry properties, set the entry options:
- Click Add if the property value is in use
- Select the Fixed-length number, with leading zeros check box
- In the box next to Length of the number, in digits, type 3
- Click OK.
- In the Configure Value dialog box, click Add.
- In the Add Entry window, configure the entry to include the period character:
- Under Entry properties, type the period character.
- Click OK.
- In the Configure Value dialog box, click Add.
- In the Add Entry window, configure the entry to include the user first name:
- Under Entry type, click User Property.
- Under Entry properties, click Select.
- In the Select Object Property window, click Last Name in the Object property list, and then click OK.
- Click OK.
At this point, the Configured value box should display the following syntax:
%<givenName>{@counter(optional,3)}.%<sn>
- Click OK to close the Configure Value dialog box.
- On the E-mail Alias Generation Rule page, click Next.
- On the Enforce Policy page, click Add.
- In the Select Objects window, select your test domain, click Add, and then click OK.
- Click Next, and then click Finish.
You must also take certain steps to override the effect of the default e-mail alias generation policy. You may block the policy effect for the entire domain or for individual containers within the domain.
To override the default e-mail alias generation policy
- In the Active Roles console, right-click your test domain (or a certain container, such as OU), and click Enforce Policy.
- In the Active Roles Policy window, locate the list entry named Built-in Policy - Default E-mail Alias, and select the Blocked check box in that entry.
- Click OK to close the Active Roles Policy window.
Test the E-mail Alias Generation policy
The policy effect on the user creation operation is as follows. On the user creation forms, the Active Roles user interfaces provide a Generate button to create an e-mail alias in accordance with the policy rule. In the event of an alias naming conflict, clicking the Generate button causes the policy to add a uniqueness number to the alias.
You can use the following steps to verify the policy behavior in the Active Roles console.
To verify the policy behavior using the Active Roles console
- Create the user account for the first user:
- In the console tree, right-click an OU in your test domain, and select New | User.
- In First name, type John; in Last name, type Smith.
- Fill in User logon name and User logon name (pre-Windows 2000).
- Click Next.
- Fill in Password and Confirm password, and click Next.
- Click the button located next to the Alias box.
This will generate John.Smith as the e-mail alias.
- Complete the creation of the user account.
- Create the user account for the second user:
- In the console tree, right-click an OU in your test domain, and select New | User.
- In First name, type John; in Initials, type A, in Last name, type Smith.
- Fill in User logon name and User logon name (pre-Windows 2000).
- Click Next.
- Fill in Password and Confirm password, and click Next.
- Click the button located next to the Alias box.
This will generate John001.Smith as the e-mail alias, since the alias John.Smith is in use.
- Complete the creation of the user account.
- Create the user account for the third user:
- In the console tree, right-click an OU in your test domain, and select New | User.
- In First name, type John; in Initials, type B, in Last name, type Smith.
- Fill in User logon name and User logon name (pre-Windows 2000).
- Click Next.
- Fill in Password and Confirm password, and click Next.
- Click the button located next to the Alias box.
This will generate John002.Smith as the e-mail alias, since both the John.Smith and John001.Smith aliases are in use.