Avatar of Exch10
Flag for France asked on

Exchange proxy mail


I have a problem to build the SMTP adress of my users, after a lotus migration:

Within my exchange 2007, my Email Adress policy gives %g.%s@mydomain.fr.

All exchange users email adresses are like "firstname.LASTNAME@company.fr" because in my AD, lastnames are uppercase.
I'd like to give proxies smtp like "firstname.lastname@company.fr"
How could I do?

Avatar of undefined
Last Comment

8/22/2022 - Mon

If I read what you are saying...  You have an issue with the system capitalzing the lastname portion of the email addresses when using a policy.

Check out the following article:


You have to add the following in front of your address structure to keep it all lowercase:


Hope that helps!

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

This might help:


Script to pull the current primary, change it to all lowercase, drop it back in, and turn off email address policy for the user account (so that policy doesn't revert these changes).

Couple of problems with that: One, it only addresses existing accounts, not new ones. Two, if you change your email address policy in the future, you'll have to run something to re-enable it for most of your users.

Exch10, even if the method I linked to is the one you used, mmicha's information is much better, because it doesn't create the problems I mentioned in my comment above.

Please have a moderator adjust the accepted solution. mmicha provided an A+ answer.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck

Thanks to you. My research arrive to the good solution for me:

Have to install QuestAD commandlets

Get-QADUser -SearchRoot "OU=Users,OU=TestOu,DC=MyDomain,DC=Net" | Select Name, sAMAccountName | Export-csv -path c:\temp\username.csv -NoTypeInformation

Import-Csv c:\temp\username.csv | foreach{Set-QADUser -identity $_.Name -samAccountName ($_.sAMAccountName).Tolower()} | Select-Object Name, samAccountName