0%
Installing Exchange Server - Part 2

Installing Exchange Server - Part 2

This guide shows you how to configure Exchange Server after installation.

10-15 min

Installing Exchange Server - Part 2

Post-Installation Configuration

1. Configuring Databases

# Create a new mailbox database
New-MailboxDatabase -Name "DB01" -EdbFilePath "C:\Exchange\DB01\DB01.edb" -LogFolderPath "C:\Exchange\DB01\Logs"

# Mount the database
Mount-Database -Identity "DB01"

# Set the default database
Set-MailboxDatabase -Identity "DB01" -IsExcludedFromProvisioning $false

2. Configuring Mailboxes

# Create a user mailbox
New-Mailbox -UserPrincipalName "user@lab.lan" -Alias "user" -Database "DB01" -Name "User Name" -FirstName "User" -LastName "Name" -DisplayName "User Name" -Password (ConvertTo-SecureString "P@ssw0rd" -AsPlainText -Force)

# Create a shared mailbox
New-Mailbox -Shared -Name "Support" -DisplayName "Support" -Alias "Support" -Database "DB01"

# Create a resource mailbox
New-Mailbox -Room -Name "SalleReunion" -Alias "SalleReunion" -Database "DB01"

3. Configuring Transport Rules

# Create a transport rule
New-TransportRule -Name "BloquerSpam" -Enabled $true -Priority 0 -FromScope "NotInOrganization" -SetHeaderName "X-Spam" -SetHeaderValue "Blocked" -StopRuleProcessing $true
Link copied!