Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Auto/Bulk add email alias #3456

Open
isnyv opened this issue Jan 24, 2025 · 0 comments
Open

[Feature Request]: Auto/Bulk add email alias #3456

isnyv opened this issue Jan 24, 2025 · 0 comments
Labels
enhancement New feature or request no-priority

Comments

@isnyv
Copy link

isnyv commented Jan 24, 2025

Description of the new feature - must be an in-depth explanation of the feature you want, reasoning why, and the added benefits for MSPs as a whole.

For example, a company may have the primary domain contoso.com, but their users might often receive emails intended for similar domains such as contoos.com. Adding email aliases across all users ensures these emails are not lost and eliminates manual overhead.

Add a built-in ability to bulk add email aliases for all mailboxes in a tenant. This feature would allow MSPs to quickly configure aliases for alternate or commonly misspelled domains (e.g., contoos.com for contoso.com) without requiring manual PowerShell script.

Benefits for MSPs
Time-Saving: Configure aliases automatically, avoiding manual updates or scripts.

PowerShell commands you would normally use to achieve above request

$users = Get-Mailbox -Filter {PrimarySmtpAddress -like "*@contoso.com"}

foreach ($user in $users) {
# Extract the local part of the email address
$localPart = $user.PrimarySmtpAddress.Split("@")[0]

# Construct the new alias address
$newAlias = "[email protected]"

# Add the alias to the user
Set-Mailbox -Identity $user.Identity -EmailAddresses @{add=$newAlias}

Write-Host "Alias $newAlias added to $($user.PrimarySmtpAddress)"

}

@isnyv isnyv added enhancement New feature or request no-priority labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request no-priority
Projects
None yet
Development

No branches or pull requests

1 participant