How to create a mail user in active directory
To create a mail user in Active Directory, you can follow these steps:
Prerequisites:
- You have administrative privileges on the Active Directory domain.
- You have the Active Directory Users and Computers (ADUC) console installed on your computer.
- You have a mail-enabled domain (i.e., a domain that has a mail server configured).
Step 1: Open the Active Directory Users and Computers console
- Go to Start > Administrative Tools > Active Directory Users and Computers.
- Alternatively, you can search for "Active Directory Users and Computers" in the Start menu and open it.
Step 2: Create a new user
- In the ADUC console, right-click on the domain or an OU (Organizational Unit) and select "New" > "User".
- Fill in the required information for the new user, such as:
- First name
- Last name
- User logon name (e.g., [username]@domain.com)
- Password
- Email address (optional, but recommended)
- Click "Next" to continue.
Step 3: Enable mail
- In the "User" properties window, click on the "Email Addresses" tab.
- Click on the "Add" button to add a new email address.
- Enter the email address in the format [username]@domain.com (e.g., [john.doe]@example.com).
- Click "OK" to save the changes.
Step 4: Configure mail settings (optional)
- If you want to configure additional mail settings, such as the mail server or mailbox size, you can do so in the "Mail" tab of the user's properties window.
- Click "OK" to save the changes.
Step 5: Verify the mail user
- Log in to the mail server (e.g., Exchange Server) and verify that the new user has been created and is mail-enabled.
- You can also use the "Get-MailUser" cmdlet in PowerShell to verify the mail user's existence and settings.
Tips and Variations:
- You can also create a mail user using the Active Directory PowerShell module (e.g.,
New-MailUser
cmdlet). - If you have Exchange Server 2013 or later, you can use the Exchange Management Console (EMC) to create a mail user.
- If you have a hybrid environment (e.g., on-premises Exchange Server and Office 365), you may need to configure additional settings to enable mail flow between the two environments.