Jump to content

Recommended Posts

Posted

Hi

We have a local exchange server with email addresses in the format of [email protected]

Having setup the AD Synchronization and all accounts showing in O365 admin, it's changed the email addresses to [email protected]

 

Our AD usernames are surname space initial: bloggs J

 

How do I get 365 to use the correct email address format?

 

Thanks.

Posted

You can use PowerShell to overwrite or add a new ProxyAddress attribute in Active Directory.

 

foreach ($user in (Get-ADUser -filter *))
{
$proxyAddress = "SMTP:"+$user.givenName+"."+$user.Surname+"@domain.org.uk"
Set-ADUser $user.samaccountname -replace @{ProxyAddresses="$proxyAddress"}
}

 

You'll need the ActiveDirectory module for Powershell.

 

Also if you have an on-premises Exchange server, have you explored the hybrid setup with O365?

Posted
You can use PowerShell to overwrite or add a new ProxyAddress attribute in Active Directory.

 

foreach ($user in (Get-ADUser -filter *))
{
$proxyAddress = "SMTP:"+$user.givenName+"."+$user.Surname+"@domain.org.uk"
Set-ADUser $user.samaccountname -replace @{ProxyAddresses="$proxyAddress"}
}

 

You'll need the ActiveDirectory module for Powershell.

 

Also if you have an on-premises Exchange server, have you explored the hybrid setup with O365?

 

I'm not looking to go Hybrid yet - I still want to have emails locally, I just need 365 accounts for online services and this seems the easiest route to go for users to use their existing AD login.

 

If I check the users properties they already have the proper school domain set as SMTP:[email protected] as the primary.

Posted

It’s probably the UPN.

 

You may find the logins are the wrong format but the actually email is correct.

 

You can change the UPN of a User and force a Sync and see if it changes

Posted

So the entry for both mail and proxyAddresses for users are the same?

 

I don't have a local Exchange so I can't fiddle, as far as I know O365 (should) pluck anything from the ProxyAddresses attribute.

 

Does O365 show any other e-mail addresses for users? The primary login may be different yet have the "proper" e-mail as an alias.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...