0 votes

Hi,
I'm looking at automatically creating mailboxes when new users are created, We have a large amount of users with the same name (as accounts are based on first name.surname) and obviously don't want to create issues with duplicate email addresses.
How do i have the creation process to check if the address already exists in exchange and add a prefix to the address before completion?

Regards
Thomas

by (40 points)

1 Answer

0 votes
by (216k points)

Hello Thomas,

How do you generate mail aliases? If you generate aliases based on the User Logon Name (samAccountName) property, it is always unique, so all aliases generated based on that property will also be unique. Additionally, you can use a PowerShell script that will automatically change the user's logon name, if it is not unique. Take a look at Example 2 in step 5 of the Validate/Modify User Input Using a Script Tutorial for instructions on hot to accomplish the task.

0

Hi,
Thanks for the quick reply,
We have a unique account name in AD (all numbers) but the email address are based on the users first name.surname which is a polciy in exchange.
What we want to do is to add a assending number to the end of the email address i.e thomas.cunningham1@emailaddress.com if the name is not unique.
Hope that makes sense.
Thomas

0

Actually, this job is already done by the Exchange provisioning engine. Here's what Microsoft has to say about this:

When the Exchange proxy address engine stamps an SMTP address, it determines whether a duplicate SMTP address exists. If a duplicate SMTP address exists, the proxy address engine appends a number to the end of the SMTP address and then checks again.

If you want some more detail, take a look at this article by Microsoft: http://support.microsoft.com/kb/2583860/en-us.

So, I think, you can rely on Exchange with this issue ;)

Related questions

0 votes
1 answer

Hello, We are currently allowing users to submit requests for new user accounts within the domain. By default, the logon name is being formatted as %firstname%.%lastname% However this ... pre-Windows-2000 user logon name. Is there a way to work around this?

asked Dec 11, 2020 by sirslimjim (480 points)
0 votes
0 answers

Hey Guys We have some issues with new meeting rooms that we have created. Previously we used to have on-premise exchange but switched to office365. Before doing ... OU but the interface are different. under exchange properties they are different aswell.

asked Sep 18, 2019 by seanr (70 points)
0 votes
1 answer

Hi, is it possible to use adm-CustomAttributeText with .SearchFilter? I need to create a new scripted report based on an older one I have but it seems like the ... $subject, $NULL, $htmlBuilder.ToString()) } Any help would be appreciated! kind regards Ingemar

asked Oct 21, 2015 by ijacob (960 points)
0 votes
1 answer

Good Afternoon, Is it possible to move mailboxes to 365 using more advanced options? I am already using the documented script but we have a need to use other switches in the ... this. I see the native way only supports a couple of options that are documented.

asked Nov 22, 2023 by curtisa (210 points)
0 votes
1 answer

Hallo Everyone I've seen the Report for Exchange Mailboxes with OU, Send on Behalf, Full Rights and Send As Rights: https://www.adaxes.com/questions/ ... . Example: User: Peter.Steinmann Identity: Which Mailboxes AccessRights: FullAccess Kind regards,

asked Jul 6, 2022 by Sandberg94 (340 points)
3,351 questions
3,052 answers
7,791 comments
545,102 users