Solved

Remove caps from an email address

Posted on 2014-11-25
5
921 Views
Last Modified: 2014-11-25
I have SBS 2011 running Exchange 2010.  The email addresses have capital letters in their Christian names and surnames, e.g., JoeBloggs@mydomain.com.  How would I go about removing the caps so the address reads joebloggs@mydomain.com?
0
Comment
Question by:grsg
  • 3
  • 2
5 Comments
 
LVL 24

Expert Comment

by:VB ITS
ID: 40464239
After some searching online, I managed to find this script. All credit goes to Mike Crowley.
$MailboxList = Get-Mailbox  -ResultSize unlimited
 
$MailboxList | % {
 
$LoweredList = @()
$RenamedList = @()
 
foreach ($Address in $_.EmailAddresses){
if ($Address.prefixstring -eq "SMTP"){
$RenamedList += $Address.smtpaddress + "TempRename"
$LoweredList += $Address.smtpaddress.ToLower()
}
}
Set-mailbox $_ -emailaddresses $RenamedList -EmailAddressPolicyEnabled $false
Set-mailbox $_ -emailaddresses $LoweredList
 
#Without this line the "Reply To" Address could be lost on recipients with more than one proxy address:
Set-mailbox $_ -PrimarySmtpAddress $_.PrimarySmtpAddress
}

Open in new window

Source article: http://mikecrowley.wordpress.com/2012/05/14/converting-smtp-proxy-addresses-to-lowercase/
0
 

Author Comment

by:grsg
ID: 40464262
Thanks for the script, though I'm nervous about running code I don't fully understand.  I only have a handful of mailboxes, do you know how I could make the changes manually?
0
 
LVL 24

Accepted Solution

by:
VB ITS earned 500 total points
ID: 40464279
I can understand that. I always like to use the -WhatIf switch to simulate the output of a command/script as a precaution.

To do it manually is a bit tedious but here goes:
Open the Exchange Management Console > expand Recipient Configuration > Mailbox
Right click on the mailbox that you need to update the email address for > Properties > E-Mail Addresses tab
Untick the Automatically update e-mail addresses based on e-mail address policy box > double click on the email address that you need to modify > add a random letter or number to the email address (e.g. Joe1@company.com) > click OK
Double click on the email address again > enter your desired email address with the lower case letters this time (e.g. joe@company.com) > OK > OK when done.

The reason I add a number in the email address is because simply replacing the upper case letter with a lower case has no effect on the email address.
0
 

Author Comment

by:grsg
ID: 40464294
Excellent, does just what it says on the can.  Many thanks
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40464296
Glad I could help :)
0

Featured Post

Want to promote your upcoming event?

Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now