Wow… didn’t expect this. I implemented Dirsync in our environment and it has changed the primary SMTP address for all users to [email protected]<\/a>. Trying to switch it back in the Office Exchange admin portal gives me an error that says I have to do this in my local AD.<\/p>\n
When looking at the user objects I see no record of the onmicrosoft.com<\/a> portion of the domain. I checked User Attributes and reviewed the proxyaddress setting and the mail setting and they both show the original @domain.com<\/span> address like it should.<\/p>\n
I edited the listing to include SMTP: in front of the address hoping this will update Office to use that as the primary SMTP address - is this going to work and I just have to be patient and wait for our AD to sync w/Office or is there another fix I need to do?<\/p>","upvoteCount":4,"answerCount":10,"datePublished":"2014-07-31T12:24:22.000Z","author":{"@type":"Person","name":"raceycave","url":"https://community.spiceworks.com/u/raceycave"},"acceptedAnswer":{"@type":"Answer","text":" Correcting the proxyaddresses attribute to include SMTP: did resolve the domain issue, but then I ran into something else. In case it’s of any help to anyone that might come across this thread in the future here’s the incident report I wrote up on the issue:<\/p>\n Issue resolved. The root cause was two main items:<\/p>\n Issue #1:<\/span> An attribute in Active Directory (proxyaddresses) was set incorrectly for synchronization with Microsoft Windows Azure Active Directory so the primary SMTP address fell back to principlesolutionsgroup.onmicrosoft.com<\/a><\/p>\n<\/li>\n Issue #2:<\/span> After correcting the attribute I found that synchronization was not occurring and the Synchronization Service Manager showed that errors were present in the Azure Active Directory connector (stopped-extension-dll-exception). My local Active Directory Connector showed ‘success’ because the local administrator account was authentication correctly, but the Azure Connector showed the error. The cause of the failure was that when I initially configured the authoritative Office 365 administrator account for authentication (my account) I used the password for my O365 login. This resulted in an initial successful replication. However, once replication had occurred, my password updated to my domain.com<\/a> AD password effectively breaking future authentication. The fix was to update the credentials to use my now replicated local domain AD password.<\/p>\n<\/li>\n Synchronization immediately resumed successful replication and the issue is now resolved.<\/p>\n<\/li>\n Note: The default replication time was three hours. I reconfigured the connector to replicate every 30 minutes to speed up replication of any future changes.<\/p>\n<\/li>\n<\/ul>\n Hope this might help someone in the future!<\/p>","upvoteCount":0,"datePublished":"2014-07-31T15:03:49.000Z","url":"https://community.spiceworks.com/t/office-365-dirsync-primary-smtp-changed/326324/5","author":{"@type":"Person","name":"raceycave","url":"https://community.spiceworks.com/u/raceycave"}},"suggestedAnswer":[{"@type":"Answer","text":" Wow… didn’t expect this. I implemented Dirsync in our environment and it has changed the primary SMTP address for all users to [email protected]<\/a>. Trying to switch it back in the Office Exchange admin portal gives me an error that says I have to do this in my local AD.<\/p>\n When looking at the user objects I see no record of the onmicrosoft.com<\/a> portion of the domain. I checked User Attributes and reviewed the proxyaddress setting and the mail setting and they both show the original @domain.com<\/span> address like it should.<\/p>\n I edited the listing to include SMTP: in front of the address hoping this will update Office to use that as the primary SMTP address - is this going to work and I just have to be patient and wait for our AD to sync w/Office or is there another fix I need to do?<\/p>","upvoteCount":4,"datePublished":"2014-07-31T12:24:23.000Z","url":"https://community.spiceworks.com/t/office-365-dirsync-primary-smtp-changed/326324/1","author":{"@type":"Person","name":"raceycave","url":"https://community.spiceworks.com/u/raceycave"}},{"@type":"Answer","text":" I’m thinking the SMTP: should do it. Just reviewed this<\/a> article, relevant information is:<\/p>\n “Note The primary SMTP address value for the user object should be prepended by an uppercase “SMTP:” designator for the address value to be formatted correctly for the proxyAddresses attribute. For example, “SMTP:[email protected]<\/a>” is an acceptable value, and “[email protected]<\/a>” isn’t an acceptable value.”<\/p>","upvoteCount":0,"datePublished":"2014-07-31T12:28:13.000Z","url":"https://community.spiceworks.com/t/office-365-dirsync-primary-smtp-changed/326324/2","author":{"@type":"Person","name":"raceycave","url":"https://community.spiceworks.com/u/raceycave"}},{"@type":"Answer","text":" It’s been a while since I managed Office365 but I think you just have to set the email property on the General tab to the address you want. You go to proxyaddresses when you want to add email aliases, SMTP = primary address smtp: alias<\/p>","upvoteCount":1,"datePublished":"2014-07-31T12:51:03.000Z","url":"https://community.spiceworks.com/t/office-365-dirsync-primary-smtp-changed/326324/3","author":{"@type":"Person","name":"andynotts","url":"https://community.spiceworks.com/u/andynotts"}},{"@type":"Answer","text":" Updated all users to include SMTP: in the proxyaddresses attribute and forced a dirsync via powershell - am waiting for it to complete and will see how I come out.<\/p>","upvoteCount":0,"datePublished":"2014-07-31T13:22:14.000Z","url":"https://community.spiceworks.com/t/office-365-dirsync-primary-smtp-changed/326324/4","author":{"@type":"Person","name":"raceycave","url":"https://community.spiceworks.com/u/raceycave"}},{"@type":"Answer","text":" Thanks!<\/p>","upvoteCount":0,"datePublished":"2014-07-31T16:19:28.000Z","url":"https://community.spiceworks.com/t/office-365-dirsync-primary-smtp-changed/326324/6","author":{"@type":"Person","name":"hellokitty","url":"https://community.spiceworks.com/u/hellokitty"}},{"@type":"Answer","text":" i had a conference call with Microsoft support for 2 hours and finally we made it, we wrote a specific code to change Primary SMTP for all of AD users , Enjoy!!!<\/p>\n 1- Go to Windows Power-Shell and run this code<\/p>\n Active Directory SMTP SYNC ALL USERS<\/strong><\/p>\n Import-Module ActiveDirectory<\/strong><\/p>\n $users = Get-ADUser -Filter *<\/strong><\/p>\n foreach ($user in $users)<\/strong><\/p>\n {<\/strong><\/p>\n $email = $user.samaccountname + ‘@domainName.com<\/span>’<\/strong><\/p>\n $newemail = “SMTP:”+$email<\/strong><\/p>\n Set-ADUser $user -Add @{proxyAddresses = ($newemail)}<\/strong><\/p>\n }<\/strong><\/p>\n ------------------------------------------------------------------------------------------------------<\/p>\n 2- Re-sync your AD with OFFICE 365 ( use Directory Sync Configuration Tools )<\/p>\n 3- wait 5 to 10 minutes and its Done!!<\/p>\n Sincerely<\/p>\n Milad Mousavi<\/p>","upvoteCount":0,"datePublished":"2015-11-11T19:41:29.000Z","url":"https://community.spiceworks.com/t/office-365-dirsync-primary-smtp-changed/326324/7","author":{"@type":"Person","name":"miladmousavizadeh","url":"https://community.spiceworks.com/u/miladmousavizadeh"}},{"@type":"Answer","text":" Do you just change the domain name in this script and then run it from the ADFS server?<\/p>","upvoteCount":0,"datePublished":"2016-03-29T18:23:54.000Z","url":"https://community.spiceworks.com/t/office-365-dirsync-primary-smtp-changed/326324/8","author":{"@type":"Person","name":"peterfranklincissp","url":"https://community.spiceworks.com/u/peterfranklincissp"}},{"@type":"Answer","text":" Yes, correct you have to change the domain name and run the script<\/p>","upvoteCount":0,"datePublished":"2016-03-29T18:37:42.000Z","url":"https://community.spiceworks.com/t/office-365-dirsync-primary-smtp-changed/326324/9","author":{"@type":"Person","name":"miladmousavizadeh","url":"https://community.spiceworks.com/u/miladmousavizadeh"}},{"@type":"Answer","text":" what will it do to the primary SMTP which is already existing?<\/p>\n does it convert it automatically to secondary or you need to run the script to change it to smtp:[email protected]<\/a><\/p>","upvoteCount":0,"datePublished":"2016-10-11T08:36:13.000Z","url":"https://community.spiceworks.com/t/office-365-dirsync-primary-smtp-changed/326324/10","author":{"@type":"Person","name":"jyotiprakashnayak5411","url":"https://community.spiceworks.com/u/jyotiprakashnayak5411"}}]}}
\n
\n