17.18. Mail-Enabling a Contact


You want to mail-enable a contact.


Using a graphical user interface

  1. Open the ADUC snap-in.


    This needs to be run on a workstation or server that has the Exchange Management Tools loaded (see Recipe 17.6).

  2. If you need to change domains, right-click on Active Directory Users and Computers in the left pane, select Connect to Domain, enter the domain name, and click OK.

  3. In the left pane, browse to the parent container of the contact, right-click on the contact, and select Exchange Tasks.

  4. On the Welcome screen, click Next.

  5. Select Establish E-mail Address and click Next.

  6. Verify the mail alias.

  7. Click Modify, select external email address type (generally SMTP Address), and click OK. Enter an external email address and click OK.

  8. Select the associated administrative group and click Next.

  9. On the Completion screen, click Finish.

Using a command-line interface

> exchmbx -b "<ContactDN>" -me <smtp email address>

Replace <ContactDN> with the contact's distinguished name and the <smtp email address> with the contact's external email address.

For an alternative method, create an LDIF file called mailenable_contact.ldf with the following contents:

dn: CN=<ContactDN> 
changetype: modify
replace: targetAddress
targetaddress: SMTP:<smtp email address>
replace: mailNickName
mailNickname: <mail nickname>
replace: mAPIRecipient
mAPIRecipient: FALSE
replace: legacyExchangeDN
legacyExchangeDN: <legacy exchange DN> - replace: internetEncoding legacyExchangeDN: 1310720 ...

Get Windows Server Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.