Solved

Remove caps from an email address

Posted on 2014-11-25
5
1,041 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 ConfigurationMailbox
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) > OKOK 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video we show how to create an email address policy 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 Mail Flow…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

774 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