Mail-Enabling a User

A mail-enabled user is a user who has at least one email address defined within Exchange, but does not have a mailbox. This does not give any access rights to the user within the Exchange system; it simply allows Exchange users to select the mail-enabled users from the global address list (GAL) and easily send email to them. You would use a mail-enabled user when you have a user who needs to log into the domain, but has an email address external to the forest’s Exchange organization. The email address could be external to the company or it could just be external to the Exchange organization of that forest. Examples would be users with mailboxes on external email systems or users with mailboxes on internal non-Exchange servers.

Using a graphical user interface

  1. Open the ADUC snap-in.
  2. This needs to be run on a workstation or server that has the Exchange Management Tools loaded
  3. 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.
  4. In the left pane, browse to the parent container of the user, right-click on the user, and select Exchange Tasks.
  5. On the Welcome screen, click Next.
  6. Select Establish E-mail Address and click Next.
  7. Verify the mail alias is what you want.
  8. Click Modify, select the external email address type (generally SMTP Address), click OK, enter an external email address, and click OK.
  9. There is an Advanced tab on the Internet Address Properties screen. On this tab, you have the option to override the default handling of email sent to this recipient. (e.g., you can force all email to be delivered as HTML or plain text, etc.)
  10. On the Completion screen, click Finish.

Using a command-line interface

> exchmbx -b "" -me 

Replace <User DN> with the user’s distinguished name and with the user’s external email address.

To mail-enable user joe with the email address, execute the following command. The command should be contained on one line.

> exchmbx -b "cn=joe,cn=users,dc=rallencorp,dc=com" -me

For an alternative Microsoft native tool method, create an LDIF file called mailenable_user.ldf with the following contents:

dn: <User DN> 
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
internetEncoding: 1310720

Replace <User DN> with the user’s distinguished name, <smtp email address> with the user’s external email address, and <legacy exchange DN> with the proper legacy exchange distinguished name value. Then run the following command:

>ldifde -i -f mailenable_user.ldf

Using VBScript

' This code mail enables a user.
strUserDN = "<UserDN>"   ' e.g., cn=jsmith,cn=Users,dc=rallencorp,dc=com
strEmailAddr = "<EmailAddress>"  'e.g.,
' ------ END CONFIGURATION ---------
set objUser = GetObject("LDAP://" & strUserDN)
objUser.MailEnable strEmailAddr
objUser.Put "internetEncoding",1310720
objUser.SetInfo( )
Wscript.Echo "Successfully mail-enabled user."