Identity synchronization to Office 365 - two smpt proxy address

%3CLINGO-SUB%20id%3D%22lingo-sub-1514904%22%20slang%3D%22en-US%22%3EIdentity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1514904%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20two%20domains%20example1.com%20and%20example2.org.%3C%2FP%3E%3CP%3EOur%20users%20email%20is%20%3CA%20href%3D%22mailto%3Aabc%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eabc%40example1.com%3C%2FA%3E%20%2C%20however%2C%20they%20all%20have%20an%20alias%20%3CA%20href%3D%22mailto%3Aabc%40example2.or%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eabc%40example2.org%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20synchronizing%20users%20to%20office%20365%2C%20i%20would%20like%20to%20use%20their%20email%20address(mail%20attribute)%20as%20their%20identity%20so%20that%20their%20log%20in%20(username)%20for%20office%20365%20is%20%3CA%20href%3D%22mailto%3Aabc%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eabc%40example1.com%3C%2FA%3E.%20I%20don't%20want%20to%20use%20their%20user%20logon%20name%20from%20AD%20because%20its'%20different.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eproxy%20address%20attribute%20for%20each%20user%20is%20as%20follows%3A%3C%2FP%3E%3CP%3ESMTP%3A%20%3CA%20href%3D%22mailto%3Aabc%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eabc%40example1.com%3C%2FA%3E%3C%2FP%3E%3CP%3Esmpt%3Aabc%40example2.org%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20i%20do%20synchronization%20of%20identities%20to%20office%20365%20using%20the%20mail%20attribute%20as%20the%20identity%20source%2C%20will%20this%20create%20a%20user%20log%20in%20in%20office%20365%20with%20%3CA%20href%3D%22mailto%3Aabc%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eabc%40example1.com%3C%2FA%3E%20as%20their%20username%20and%20an%20alias%20of%20%3CA%20href%3D%22mailto%3Aabc%40example2.org%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eabc%40example2.org%3C%2FA%3E%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20not%2C%20how%20can%20i%20go%20about%20it%20%2C%20so%20that%20their%20username%20becomes%20their%20email%20address(%3CA%20href%3D%22mailto%3Aabc%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eabc%40example1.com%3C%2FA%3E)%20and%20their%20alias%20becomes%20abc%40example2.org%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1514904%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Server%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1515275%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1515275%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F720273%22%20target%3D%22_blank%22%3E%40Ferzaer2%3C%2FA%3E%26nbsp%3Byou%20can%20configure%20another%20attribute%20in%20AAD%20Connect%20as%20your%20logon%20name%2C%20it's%20called%20alternate%20logon%20id.%20But%20from%20a%20best%20practice%20perspective%2C%20the%20UPN%20should%20match%20your%20primary%20smtp%20address.%20I%20can%20highly%20recommend%20to%20change%20the%20UPN%20and%20go%20with%20the%20default%20attributes%20whenever%20possible.%26nbsp%3B%5B%23%24dp58%5D%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fidentity%2Fad-fs%2Foperations%2Fconfiguring-alternate-login-id%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fidentity%2Fad-fs%2Foperations%2Fconfiguring-alternate-login-id%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1515334%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1515334%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F65976%22%20target%3D%22_blank%22%3E%40Dominik%20Hoefling%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20can%20go%20wrong%20%3F%26nbsp%3B%26nbsp%3B%20It's%20only%20being%20used%20to%20create%20their%20identities%20i.e.%20usernames%20online%20on%20office%20365%20and%20then%20their%20mailbox%20is%20going%20to%20be%20synchronized%2C%20the%20on%20premises%20server%20will%20be%20decommissioned%2F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20you%20are%20not%20understanding%20my%20question%20or%20i%20phrased%20it%20wrong.%3C%2FP%3E%3CP%3EI%20know%20i%20can%20configure%20alternative%20id%20(and%20that%20is%20what%20i%20plan%20to%20do)%20use%20mail%20attribute%20as%20alternative%20ID%20so%20i%20don't%20have%20to%20edit%20user%20log%20in%20id%20for%20office%20365.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20i%20would%20like%20to%20know%20how%20i%20could%20do%20this%20so%20that%20the%20users%20get%20both%20aliases%20created%20automatically.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere's%20a%20better%20example%3A%3C%2FP%3E%3CP%3EImagine%20a%20user%20with%20a%20name%20Jenny%20Dear%3C%2FP%3E%3CP%3EUser%20log%20on%20name%20is%3C%2FP%3E%3CP%3Edearj%3C%2FP%3E%3CP%3EUPN%3A%20example1.com%3C%2FP%3E%3CP%3Eso%20we%20have%20%3CA%20href%3D%22mailto%3Adearj%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Edearj%40example1.com%3C%2FA%3E%20as%20her%20windows%20log%20in%20username-%26nbsp%3B%20not%20that%20they%20use%20it.%3C%2FP%3E%3CP%3EHowever%2C%20her%20email%20is%3C%2FP%3E%3CP%3E%3CA%20href%3D%22mailto%3AJenny%40EXAMPLE1.COM%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EJenny%40EXAMPLE1.COM%3C%2FA%3E%3C%2FP%3E%3CP%3ESo%20the%20AD%20attribute%20has%20this%3A%3C%2FP%3E%3CP%3Email%3A%20%3CA%20href%3D%22mailto%3AJenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EJenny%40example1.com%3C%2FA%3E%3C%2FP%3E%3CP%3Eproxyaddress%3A%3C%2FP%3E%3CP%3ESMTP%3A%20%3CA%20href%3D%22mailto%3AJenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EJenny%40example1.com%3C%2FA%3E%3C%2FP%3E%3CP%3Esmtp%3A%20jenny%40example2.org%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20use%20the%20mail%20attribute%20as%20an%20alternative%20log%20on%20id%2C%20so%20that%20when%20400%20users%20get%20synchronized%2C%20all%20their%20username%20for%20office%20365%20will%20be%20their%20mail%20attribute%20i.e.%20Jenny%40example1.com%3C%2FP%3E%3CP%3EPerfect%20scenario%20is%2C%20they%20also%20get%20an%20alias%20%3CA%20href%3D%22mailto%3AJenny%40example2.org%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EJenny%40example2.org%3C%2FA%3E%20created%20in%20the%20process%20so%20i%20don't%20have%20to%20go%20and%20update%20all%20of%20them%20manually.%3C%2FP%3E%3CP%3EAfter%20their%20identities%20are%20created%20%2B%20passwords%20synchronized%2C%20the%20mailbox%20move%20is%20done%2C%20the%20exchange%20server%20will%20be%20killed.%20We%20won't%20be%20keeping%20it%20around%20for%20long%2C%20hopefully%20a%20week%20or%20two.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1515346%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1515346%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F720273%22%20target%3D%22_blank%22%3E%40Ferzaer2%3C%2FA%3E%26nbsp%3BYes%2C%20I%20actually%20got%20it%20%3A)%3C%2Fimg%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20You%20can't%20remove%20any%20Exchange%20as%20long%20as%20AAD%20Connect%20is%20in%20place.%20If%20you%20want%20to%20remove%20Exchange%2C%20you%20%22have%20to%22%20switch%20to%20cloud-only%20accounts.%20It's%20not%20supported%20to%20change%20Exchange%20attributes%20in%20AD%2FADSIEDIT.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2.%20You%20can%20configure%20the%20mail-attribute%20in%20Azure%20AD%20Connect%20as%20the%20logon%20name%20(UPN%20in%20Azure)%20which%20is%20explained%20in%20my%20link.%20A%20user%20can%20only%20have%20one%20logon%20name%20(UPN)%20and%20I%20believe%20you%20mean%20by%20alias%20another%20email%20address%2C%20right%3F%20If%20yes%2C%20use%20email%20address%20policies%20on-premises%2C%20then%20Exchange%20will%20add%20all%20your%20required%20aliases%20to%20the%20mailbox%20and%20these%20addresses%20will%20be%20synchronized%20to%20Exchange%20Online%20with%20AAD%20Connect%20and%20you%20can%20receive%20emails%20on%20those%20aliases%20as%20well.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1515366%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1515366%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F65976%22%20target%3D%22_blank%22%3E%40Dominik%20Hoefling%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20getting%20somewhere.%20I%20really%20appreciate%20your%20input.%20Here%20is%20a%20bit%20more%20clarification.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20We%20are%20not%20going%20to%20keep%20ADconnect%20around%2C%20we%20plan%20on%20moving%20all%20mailboxes%2Fusers%20to%20the%20cloud%20and%20killing%20exchange(after%20we%20uninstall%20adconnect).%20We%20don't%20need%20password%20synchronization%2C%20etc.%20We%20are%20going%20to%20keep%20AD%20on%20premises%20for%20file%20sharing%20etc%2C%20and%20users%20will%20continue%20to%20use%20their%20current%20log%20ins%20as%20if%20nothing%20changed.%20Only%20email%20access%20will%20be%20changed%20and%20they%20will%20have%20two%20passwords%20moving%20forward.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Our%20on%20premises%20exchange%20email%20policy%20has%20a%20rule%20where%20whenever%20we%20create%3C%2FP%3E%3CP%3E%3CA%20href%3D%22mailto%3Ausera%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example1.com%20%3C%2FA%3E%2C%20they%20also%20have%20an%20alias%20created%20%3CA%20href%3D%22mailto%3Ausera%40example2.org%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example2.org%3C%2FA%3E%20(yes%2C%20different%20domains)%20which%20is%20why%20in%20AD%20attribute%20the%20proxy%20address%20has%20two%20smtp%20(different%20domains%20for%20same%20user%20linked%20to%20one%20mailbox).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%3C%2FP%3E%3CP%3EI%20would%20like%20to%20create%20in%20office%20365%20a%20user%20log%20in%20based%20on%20the%20mail%20attribute%20which%20will%20result%20in%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22primaryUserNameHeader-949%22%3EPrimary%20email%20address%20and%20username%3A%20%3CA%20href%3D%22mailto%3Ajenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example1.com%3C%2FA%3E%3C%2FDIV%3E%3CDIV%20class%3D%22primaryUserNameHeader-949%22%3EAlias%3A%20jenny%40example2.org%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20do%20this%26nbsp%3B%20iautomatically%20or%20with%20powershell%20based%20on%20the%20proxy%20address%20since%20they%20already%20have%20SMTP%3A%20%3CA%20href%3D%22mailto%3Ajenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example1.com%3C%2FA%3E%20(with%20capital%20so%20that%20it's%20the%20primary%20domain%2Faddress)%20and%20the%20second%20one%20smtp%3A%20%3CA%20href%3D%22mailto%3Ajenny%40example2.org%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example2.org%3C%2FA%3E%20as%20the%20second%20one%20or%20alias.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOr%20for%20example%2C%20i%20synch%20them%20and%20their%20identities%20are%20created%20as%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22mailto%3Ajenny%40example1.com%2C%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example1.com%2C%3C%2FA%3E%20can%20i%20use%20powershell%20to%20create%20an%20alias%20for%20them%20automatically%20for%20each%20user%20so%20they%20become%3C%2FP%3E%3CP%3E%3CA%20href%3D%22mailto%3Ajenny%40example2.org%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example2.org%20%3C%2FA%3E%2C%20basically%20taking%20whatever%20is%20after%20%40%20i.e.%20example1.com%20and%20replacing%20that%20with%20example2.org%20and%20thus%20creating%20an%20alias%20automatically%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20feel%20like%20i%20will%20have%20to%20do%20this%20manually%2C%20but%20still%20looking%20for%20ways.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1515426%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1515426%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F720273%22%20target%3D%22_blank%22%3E%40Ferzaer2%3C%2FA%3E%26nbsp%3Bsure%20thing%2C%20you're%20welcome!%3C%2FP%3E%0A%3CP%3E1)%20got%20it%2C%20thanks%3C%2FP%3E%0A%3CP%3E2)%20%22I%20would%20like%20to%20create%20in%20office%20365%20a%20user%20log%20in%20based%20on%20the%20mail%20attribute%20which%20will%20result%20in%3C%2FP%3E%0A%3CDIV%20class%3D%22primaryUserNameHeader-949%22%3EPrimary%20email%20address%20and%20username%3A%20-ERR%3AREF-NOT-FOUND-jenny%40example1.com%3C%2FDIV%3E%0A%3CDIV%20class%3D%22primaryUserNameHeader-949%22%3EAlias%3A%20%3CA%20href%3D%22mailto%3Ajenny%40example2.org%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example2.org%22%3C%2FA%3E%3C%2FDIV%3E%0A%3CDIV%20class%3D%22primaryUserNameHeader-949%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22primaryUserNameHeader-949%22%3ELet%20me%20try%20to%20explain%20it%3A%20UPN%20%2B%20primary%20smtp%20address%3A%20%3CA%20href%3D%22mailto%3Ajenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example1.com%3C%2FA%3E%26nbsp%3B--%26gt%3B%20Default%20user%20login%20name%20(UPN)%20in%20Azure%20if%20you%20don't%20configure%20alternate%20login%20id%20in%20Azure%20AD%20Connect.%3C%2FDIV%3E%0A%3CDIV%20class%3D%22primaryUserNameHeader-949%22%3EAlias%3A%20%3CA%20href%3D%22mailto%3Ajenny%40example2.org%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example2.org%3C%2FA%3E%26nbsp%3B--%26gt%3B%20what%20do%20you%20mean%20by%20alias%3F%20Additional%20proxy%20address%3F%20mail%3F%20mailnickname%3F%20If%20you%20want%20this%20as%20the%20UPN%2Flogin%20name%20in%20Azure%2C%20you%20can%20use%20whatever%20attribute%20you%20want%20as%20your%20logon%20name%20in%20Azure%20AD%20Connect.%3C%2FDIV%3E%0A%3CDIV%20class%3D%22primaryUserNameHeader-949%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22primaryUserNameHeader-949%22%3EIf%20you%20mean%20the%20%22alias%22%20in%20the%20Microsoft%20365%20admin%20center%3A%20you%20can%20choose%20a%20user%20login%20name%20(UPN)%20from%20any%20existing%20smtp%20addresses%20(alias).%20Is%20this%20the%20feature%20you%20are%20trying%20to%20use%20(see%20attached%20screenshot)%3F%3C%2FDIV%3E%0A%3CDIV%20class%3D%22primaryUserNameHeader-949%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22primaryUserNameHeader-949%22%3EIf%20yes%3A%20this%20can%20be%20achieved%20by%20email%20address%20polices%20or%2C%20of%20course%2C%20you%20can%20add%20the%20alias%20afterwards%20in%20Azure%20via%20PowerShell%20for%20all%20your%20users%20in%20bulk.%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1515492%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1515492%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F65976%22%20target%3D%22_blank%22%3E%40Dominik%20Hoefling%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHey%2C%20i%20think%20images%20help.%20Yes%2C%20I%20was%20referring%20to%20that%20alias%20in%20microsoft%20365%20center.%3C%2FP%3E%3CP%3EI%20have%20both%20example1.com%20and%20example2.org%20added%20to%20my%20tenant.%3C%2FP%3E%3CP%3EHowever%2C%20when%20i%20synchronize%20users%20to%20create%20their%20identities%20i%20would%20like%20their%20primary%20address%20to%20be%3C%2FP%3E%3CP%3E%3CA%20href%3D%22mailto%3Ajenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ejenny%40example1.com%3C%2FA%3E%20%2C%20and%20then%20either%20later%2F%20or%20in%20the%20same%20step%20add%20the%20alias%3C%2FP%3E%3CP%3E%3CA%20href%3D%22mailto%3Ajenny%40example2.org%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ejenny%40example2.org%20%3C%2FA%3E-%20because%20a%20lot%20of%20people%20send%20them%20emails%20at%20the%20second%20email.%3C%2FP%3E%3CP%3ESo%20if%20someone%20sends%20them%20an%20email%20at%20%3CA%20href%3D%22mailto%3Ajenny%40example2.org%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ejenny%40example2.org%3C%2FA%3E%20i%20want%20that%20email%20to%20be%20forwarded%20to%20%3CA%20href%3D%22mailto%3Ajenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ejenny%40example1.com%3C%2FA%3E%20-%20from%20what%20i%20read%20this%20is%20the%20way%20to%20go.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%2C%20I'm%20attaching%20some%20photos%20so%20that%20you%20see%20that%20the%20users%20log%20on%20name%20or%20username%20for%20domain%20computers%20is%20%22dearj%22%20and%20when%20i%20synchronize%20and%20if%20i%20use%20the%20default%20identity%20%2C%20their%20primary%20address%20on%20office%20365%20will%20be%3C%2FP%3E%3CP%3E%3CA%20href%3D%22mailto%3Ajennyd%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Edearj%40example1.com%3C%2FA%3E%3C%2FP%3E%3CP%3EHowever%2C%20i%20want%20to%20avoid%20this%20as%20it%20will%20cause%20confusion%20when%20their%20email%20is%20%3CA%20href%3D%22mailto%3Ajenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ejenny%40example1.com%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERather%20than%20updating%20user%20log%20on%20name%20on%20the%20on%20premises%20AD%26nbsp%3B%20for%20all%20of%20them%20manually%20before%20synchronization%20i%20can%20use%20the%20mail%20attribute%20from%20AD%20attributes%20as%20the%20alternate%20identity%20for%20add%20connect%20and%20this%20should%20create%20in%20microsoft%20365%20their%20username%2Fid%20based%20on%20the%20mail%20attribute.%20Right%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESee%20attached%20images%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20not%20sure%20what%20could%20go%20wrong%20since%20we%20won't%20be%20keeping%20the%20hybrid%20for%20very%20long%20%3F%20Every%20mail%20attribute%20is%20unique%20if%20there%20are%20two%20Jenny%2C%20then%20the%20second%20one%20gets%20a%20mail%20attribute%20%3CA%20href%3D%22mailto%3AJenny2%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EJenny2%40example1.com%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20again%20for%20being%20involved%20and%20helping%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1515519%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1515519%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F65976%22%20target%3D%22_blank%22%3E%40Dominik%20Hoefling%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDon't%20know%20what%20happened%20to%20my%20last%20reply%20(it%20just%20went%20missing)%20but%20yes%2C%20I%20am%20referring%20to%20the%20alias%20in%20microsoft%20365.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESome%20users%20receive%20email%20at%20example2.org%20domain%20and%20i%20would%20like%20whatever%20email%20they%20receive%20at%20%3CA%20href%3D%22mailto%3Ajenny%40example2.org%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example2.org%3C%2FA%3E%20gets%20redirected%20to%20%3CA%20href%3D%22mailto%3Ajenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example1.com%3C%2FA%3E%20-%20and%20this%20seems%20the%20way%20to%20go%20about%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%2C%20I'm%20attaching%20photos%20so%20you%20use%20what%20their%20upn%20looks%20like%20now%20with%20the%20user%20log%20on%20name%2C%20it's%3C%2FP%3E%3CP%3E%3CA%20href%3D%22mailto%3Adearj%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CFONT%20color%3D%22%23FF0000%22%3Edearj%3C%2FFONT%3E%40example1.com%3C%2FA%3E%20%2C%20if%20i%20use%20this%20as%20my%20default%20identity%20for%20add%20connect%20then%20their%20microsoft%20office%20365%20account%20primary%20address%20will%20be%20%3CA%20href%3D%22mailto%3Adearj%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CFONT%20color%3D%22%23FF0000%22%3Edearj%3C%2FFONT%3E%40example1.com%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20their%20email%20is%20%3CA%20href%3D%22mailto%3Ajenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSTRONG%3Ejenny%3C%2FSTRONG%3E%40example1.com%3C%2FA%3E%20and%20we%20want%20this%20to%20be%20created%20as%20their%20microsoft%20office%20365%20primary%20address.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESee%20the%20attached%20photos.%3C%2FP%3E%3CP%3EIt%20seems%20the%20only%20way%20is%20to%20use%20alternate%20log%20in%20for%20azure%20ad%20connect%26nbsp%3B%20and%20choose%20mail%20attribute%20which%20corresponds%20to%20%3CA%20href%3D%22mailto%3Ajenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example1.com%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22UPNuserlogonname.PNG%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F204694i260F0104641BB195%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22UPNuserlogonname.PNG%22%20alt%3D%22UPNuserlogonname.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ProxyAddressAttribute.PNG%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F204693i33E6D5D1A1E930D1%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22ProxyAddressAttribute.PNG%22%20alt%3D%22ProxyAddressAttribute.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MailAttribute.PNG%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F204692iC7BB9791315E0C7F%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22MailAttribute.PNG%22%20alt%3D%22MailAttribute.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJust%20wondering%20what%20can%20go%20wrong%20and%20why%20not%20go%20this%20way%26nbsp%3B%20%3F%26nbsp%3B%20It%20seems%20the%20best%20%2Ffastest%20way%20to%20achieve%20this.%3C%2FP%3E%3CP%3EThere%20are%20no%20two%20duplicate%20mail%20attributes%20and%20i%20guess%20we%20can%20add%20the%20alias%20manually%20or%20automatically%20with%20powershell.%3C%2FP%3E%3CP%3E%E2%80%83%E2%80%83%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1515567%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1515567%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F720273%22%20target%3D%22_blank%22%3E%40Ferzaer2%3C%2FA%3E%26nbsp%3Byes%2C%20a%20mailbox%20can%20have%20many%20different%20alias%20proxy%20addresses%20and%20the%20automatically%20get%20%22redirected%22%20to%20their%20primary%20address.%20Actually%20it's%20not%20a%20technical%20redirect%2C%20they%20just%20get%20into%20the%20mailbox%20itself.%20And%20yes%2C%20alternate%20login%20id%20is%20the%20best%20way%20how%20to%20achieve%20this.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%20the%20following%20articles%20regarding%20UPN%20ne%20primary%20smtp%20address%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Finvorx.com%2Fupn-should-match-your-primary-smtp-address-in-office-365%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Finvorx.com%2Fupn-should-match-your-primary-smtp-address-in-office-365%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fblogs.perficient.com%2F2015%2F07%2F07%2Foffice-365-why-your-upn-should-match-your-primary-smtp-address%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.perficient.com%2F2015%2F07%2F07%2Foffice-365-why-your-upn-should-match-your-primary-smtp-address%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.cloudhq.net%2Fit-admin-office-365-why-your-user-principal-name-upn-should-match-your-email-address%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.cloudhq.net%2Fit-admin-office-365-why-your-user-principal-name-upn-should-match-your-email-address%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%22...%20Yes%2C%20Microsoft%20did%20release%20a%20feature%20last%20year%20called%20%E2%80%9CAlternate%20Login%20ID%E2%80%9D%20that%20allows%20you%20to%20use%20an%20attribute%20other%20than%20UPN%20for%20your%20Office%20365%20login%2C%20but%20that%20feature%20comes%20with%20a%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fblogs.perficient.com%2Fmicrosoft%2F2015%2F02%2Foffice-365-the-limitations-of-alternate-login-id%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Elist%20of%20limitations%3C%2FA%3E%3CSPAN%3E%20that%20you%20should%20be%20aware%20of.%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt's%20the%20easiest%20way%20if%20you%20prepare%20your%20identities%20on-prem%20(e.%20g.%20email%20address%20policy%20to%20add%20all%20required%20alias%20and%20sync%20it%20to%20Azure)%2C%20migrate%20your%20data%2C%20decommission%20your%20on-prem%20infrastructure.%20If%20you%20disable%20the%20dirsync%20afterwards%20in%20Azure%2C%20you%20can%20also%20change%20your%20objects%20there.%20Alternate%20login%20id%20(mail)%20is%20the%20way%20to%20go%2C%20but%20best%20practices%20is%20to%20change%20the%20UPN%20on-prem%20to%20your%20primary%20smtp%20address%20value.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1515653%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1515653%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F65976%22%20target%3D%22_blank%22%3E%40Dominik%20Hoefling%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20confused%20by%20this%20part%20Alternate%20login%20id%20(mail)%20is%20the%20way%20to%20go%2C%20%3CU%3Ebut%20best%20practices%20is%20to%20change%20the%20UPN%20on-prem%20to%20your%20primary%20smtp%20address%20value.%3C%2FU%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20mean%20to%20change%20the%20%3CSTRONG%3Euser%20log%20on%20name%3C%2FSTRONG%3E%20from%20%3CSTRONG%3Edearj%20to%20%3CA%20href%3D%22mailto%3Ajenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example1.com%20%3C%2FA%3E%3C%2FSTRONG%3Eon%20prem%20before%20doing%20identity%20synchronization%3F%26nbsp%3B%20Please%20see%20the%20photo%20i%20attached.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20UPN%20part%20i.e.%20what%20comes%20after%20%40%20is%20already%20example1.com%20and%20it%20matches%20my%20primary%20smtp%20address%20value.%3C%2FP%3E%3CP%3EHowever%2C%20I'm%20mainly%20concerned%20with%20the%20part%20before%20%40%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1515659%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1515659%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F720273%22%20target%3D%22_blank%22%3E%40Ferzaer2%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnswer%20found%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fblogs.perficient.com%2F2015%2F07%2F07%2Foffice-365-why-your-upn-should-match-your-primary-smtp-address%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.perficient.com%2F2015%2F07%2F07%2Foffice-365-why-your-upn-should-match-your-primary-smtp-address%2F%3C%2FA%3E%3C%2FP%3E%3CP%3EThanks%20for%20the%20link.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%2C%20my%20only%20question%20is%20what%20is%20the%20best%20approach%20to%20create%20the%20alias%20with%20the%20second%20domain%20%3F%20Before%20remote%20mailbox%20is%20done%20or%20after%20%3F%3C%2FP%3E%3CP%3EIs%20there%20any%20powershell%20script%20that%20can%20do%20this%20or%20i%20can%20do%20it%20during%20directory%2Fidentity%20synchronization%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1515671%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1515671%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F720273%22%20target%3D%22_blank%22%3E%40Ferzaer2%3C%2FA%3E%26nbsp%3B%3CSPAN%3EDo%20you%20mean%20to%20change%20the%20%3C%2FSPAN%3E%3CSTRONG%3Euser%20log%20on%20name%3C%2FSTRONG%3E%3CSPAN%3E%20from%20%3C%2FSPAN%3E%3CSTRONG%3Edearj%20to%20%3CA%20href%3D%22mailto%3Ajenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example1.com%20%3C%2FA%3E%3C%2FSTRONG%3E%3CSPAN%3Eon%20prem%20before%20doing%20identity%20synchronization%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E--%26gt%3B%26nbsp%3Bexactly%2C%20always%20follow%20the%20simplest%20method%20and%20the%20best%20practices%26nbsp%3Bapproach%20from%20Microsoft.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%2C%20my%20only%20question%20is%20what%20is%20the%20best%20approach%20to%20create%20the%20alias%20with%20the%20second%20domain%20%3F%20Before%20remote%20mailbox%20is%20done%20or%20after%20%3F%3C%2FP%3E%0A%3CP%3EIs%20there%20any%20powershell%20script%20that%20can%20do%20this%20or%20i%20can%20do%20it%20during%20directory%2Fidentity%20synchronization%20%3F%3C%2FP%3E%0A%3CP%3E--%26gt%3B%20It's%20already%20there%20from%20your%20screenshot%20(one%20primary%20smtp%20address%20(SMTP)%20and%20one%20secondary%20smtp%20address%20(smtp).%20You%20can%20add%20the%20alias%20either%20manually%2C%20PowerShell%2C%20or%20email%20address%20policy%20on-prem.%20All%20those%20values%20will%20be%20synchronized%20to%20Exchange%20Online.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPrior%20migration%3A%3C%2FP%3E%0A%3CP%3E1.%20Manually%3A%20ECP%3C%2FP%3E%0A%3CP%3E2.%20PowerShell%3A%26nbsp%3BSet-Mailbox%20%22Dan%20Jump%22%20-EmailAddresses%20%40%7Badd%3D%22dan.jump%40northamerica.contoso.com%22%2C%22danj%40tailspintoys.com%22%2C%22jenny%40example1.com%22%7D%3C%2FP%3E%0A%3CP%3E3.%20Email%20address%20policy%20in%20ECP%20or%20via%20PowerShell%3A%20Get%2FSet-EMailAddressPolicy%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20migration%3A%3C%2FP%3E%0A%3CP%3E1.%20Manually%3A%20ECP%3C%2FP%3E%0A%3CP%3E2.%20PowerShell%3A%26nbsp%3BSet-RemoteMailbox%20%22Dan%20Jump%22%20-EmailAddresses%20%40%7Badd%3D%22dan.jump%40northamerica.contoso.com%22%2C%22danj%40tailspintoys.com%22%2C%22jenny%40example1.com%22%7D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20that%20helps.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1518645%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1518645%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F65976%22%20target%3D%22_blank%22%3E%40Dominik%20Hoefling%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGuys!%20I%20was%20reading%20the%20whole%20conversation%20because%20I%20am%20in%20same%20sort%20of%20situation.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%2C%20choosing%20email%20as%20Syncing%20attribute%20will%20create%20users%20UPNs%20in%20office%20365.%3C%2FP%3E%3CP%3EI%20need%20a%20clarification%20here..a%20mailbox%20having%20proxies%20addresses%20on-premises%20%2Cafter%20migration%20to%20cloud%20%2C%20will%20these%20proxy%20addresses%20appear%20there%3F%20Keeping%20in%20mind%20that%20I%20only%20sync%20my%20email%20attribute%20based%20domain%20while%20proxy%20addresses%20are%20on%20different%20domain%20which%20is%20not%20syncing%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1518680%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1518680%22%20slang%3D%22en-US%22%3EShort%20answers%3A%20no.%20You%20need%20to%20connect%20both%20domains%20%2F%20forests%20e.g.%20if%20you%20have%20an%20account%20and%20Exchange%20ressource%20forest%20setup.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1518737%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1518737%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F65976%22%20target%3D%22_blank%22%3E%40Dominik%20Hoefling%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20sorry%20for%20late%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20since%20I%20already%20have%20two%20smtp%20proxy%20addresses%20on%20premises%20for%20each%20user%20%2C%20the%20alias%20should%20be%20created%20automatically%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20one%20more%20question.%20I%20have%20decided%20to%20try%20and%20use%20a%20script%20to%20change%20each%20users%20UPN%20to%3C%2FP%3E%3CP%3E%3CA%20href%3D%22mailto%3Ajenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example1.com%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20I%20forgot%20to%20mention%2C%20I%20will%20have%203%20domains%20in%20UPN.%3C%2FP%3E%3CP%3Eexample1.com%20(also%20verified%20in%20office%20365%20and%20used%20as%20main%20upn%20for%20users%2C%20meaning%20all%20users%20will%20have%20a%20upn%20of%3A%20%3CA%20href%3D%22mailto%3Aname%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ename%40example1.com%3C%2FA%3E%20set%20prior%20migration).%3C%2FP%3E%3CP%3Eexample2.org%20(also%20verified%20in%20office%20365%2C%20no%20user%20will%20have%20this%20as%20their%20upn)%3C%2FP%3E%3CP%3Eexample3.gov(not%20verified%20in%20office%20365%2C%20no%20user%20will%20have%20this%20as%20their%20upn)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWill%20the%20example3.gov%20domain%20cause%20an%20issue%20since%20it's%20not%20verified%20in%20office%20365%20%3F%20I%20will%20not%20be%20using%20it%20as%20a%20upn%20%3F%20I%20think%20there's%20an%20option%20to%20just%20ignore%20it%20if%20it's%20not%20verified%20when%20doing%20identity%20synchronization%20and%20that%20the%20most%20important%20part%20is%20the%20actual%20upn%20that%20is%20selected%20i.e.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22mailto%3Ajenny%40example1.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ejenny%40example1.com%3C%2FA%3E%20for%20every%20user%20(and%20even%20though%20there%20are%20other%20domains%2C%20this%20will%20be%20the%20one%20that%20is%20used%2C%20correct%20)%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1518844%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1518844%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F720273%22%20target%3D%22_blank%22%3E%40Ferzaer2%3C%2FA%3E%26nbsp%3B%3CSPAN%3ESo%20since%20I%20already%20have%20two%20smtp%20proxy%20addresses%20on%20premises%20for%20each%20user%20%2C%20the%20alias%20should%20be%20created%20automatically%20%3F%20--%26gt%3B%20yes.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EWill%20the%20example3.gov%20domain%20cause%20an%20issue%20since%20it's%20not%20verified%20in%20office%20365%20%3F%20--%26gt%3B%20as%20long%20as%20no%20user%20has%20example3.gov%20as%20an%20email%20address%2C%20there%20will%20be%20no%20issues.%20If%20you%20want%20to%20sync%20these%20smtp%20addresses%20to%20O365%2C%20then%20you%20have%20to%20register%20it%20(but%20you%20don't%20have%20to%20add%20them%20as%20an%20additional%20UPN%20suffix%20in%20your%20on-prem%20AD).%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1519156%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1519156%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F65976%22%20target%3D%22_blank%22%3E%40Dominik%20Hoefling%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22as%20long%20as%20no%20user%20has%20example3.gov%20as%20an%20email%20address%2C%20there%20will%20be%20no%20issues.%20If%20you%20want%20to%20sync%20these%20smtp%20addresses%20to%20O365%2C%20then%20you%20have%20to%20register%20it%20(but%20you%20don't%20have%20to%20add%20them%20as%20an%20additional%20UPN%20suffix%20in%20your%20on-prem%20AD).%22%3C%2FP%3E%3CP%3ENo%2C%20no%20user%20has%20the%20example3.gov%20as%20an%20email%20address%20and%20i%20don't%20want%20to%20sync%20it.%3C%2FP%3E%3CP%3EAlso%2C%20no%20user%20has%20an%20upn%20suffix%20that%20ends%20in%20example3.gov.%3C%2FP%3E%3CP%3EHowever%2C%20the%20upn%20suffix%20is%20there%20-%20it's%20not%20being%20used%2C%20but%20it's%20there%20available%20to%20be%20picked%20up.%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20as%20long%20as%20no%20user%20has%20the%20upn%20suffix%20added%20to%20their%20log%20on%2C%20then%20it%20won't%20be%20an%20issue%20correct%20%3F%20Even%20though%20it's%20available%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20one%20more%20question%2C%20it%20seems%20everyone%20recommends%20using%20express%20settings%2C%20but%20is%20it%20an%20issue%20to%20use%20custom%20settings%20so%20i%20can%20choose%20two%20OU%20for%20synchronization%20%2C%20without%20synchronizing%20some%20local%20accounts%20from%20other%20OU%20that%20have%20no%20email%20address%20and%20are%20used%20purely%20for%20domain%20compute%20access%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20again%20for%20everything.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1519281%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1519281%22%20slang%3D%22en-US%22%3EDoesn%E2%80%99t%20matter%20if%20the%20UPN%20is%20there%20on-prem%20or%20not%2C%20right.%3CBR%20%2F%3E%3CBR%20%2F%3EExpress%20settings%20has%20the%20advantage%20that%20you%20will%20automatically%20receive%20updates%20(kind%20of%20auto%20updated)%20and%20the%20default%20configuration%20will%20be%20applied.%20Of%20course%20you%20can%20use%20the%20custom%20setting%20and%20configure%20OU%20filtering.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1519332%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1519332%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F65976%22%20target%3D%22_blank%22%3E%40Dominik%20Hoefling%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGot%20you.%20Since%20I%20plan%20on%20getting%20rid%20of%20ad%20connect%20soon%20after%20migration%2C%20i%20don't%20think%20i%20need%20updates.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20one%20more%20question%26nbsp%3B%20%2Cbut%20I'll%20make%20a%20separate%20thread%20about%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20everything%20so%20far.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1519482%22%20slang%3D%22en-US%22%3ERe%3A%20Identity%20synchronization%20to%20Office%20365%20-%20two%20smpt%20proxy%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1519482%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F65976%22%20target%3D%22_blank%22%3E%40Dominik%20Hoefling%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F40291%22%20target%3D%22_blank%22%3E%40Abdul%20Farooque%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22user-login%22%3EGuys%2C%20i%20think%20this%20is%20what%20we%20have%20been%20waiting%20for%20%2C%20well%20at%20least%20I.%3C%2FDIV%3E%3CDIV%20class%3D%22user-login%22%3E%3CH1%20id%3D%22toc-hId-496052951%22%20id%3D%22toc-hId-496052951%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-active-directory-identity%2Fenable-user-friendly-sign-in-to-azure-ad-with-email-as-an%2Fba-p%2F1257366%22%20target%3D%22_self%22%3E%3CSPAN%20class%3D%22lia-message-unread%20lia-message-unread-windows%22%3EEnable%20user-friendly%20sign-in%20to%20Azure%20AD%20with%20email%20as%20an%20alternate%20login%20ID%3C%2FSPAN%3E%3C%2FA%3E%3C%2FH1%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
Contributor

Hi everyone,

 

I have two domains example1.com and example2.org.

Our users email is abc@example1.com , however, they all have an alias abc@example2.org

 

When synchronizing users to office 365, i would like to use their email address(mail attribute) as their identity so that their log in (username) for office 365 is abc@example1.com. I don't want to use their user logon name from AD because its' different.

 

proxy address attribute for each user is as follows:

SMTP: abc@example1.com

smpt:abc@example2.org

 

If i do synchronization of identities to office 365 using the mail attribute as the identity source, will this create a user log in in office 365 with abc@example1.com as their username and an alias of abc@example2.org ?

 

If not, how can i go about it , so that their username becomes their email address(abc@example1.com) and their alias becomes abc@example2.org

 

19 Replies

@Ferzaer2 you can configure another attribute in AAD Connect as your logon name, it's called alternate logon id. But from a best practice perspective, the UPN should match your primary smtp address. I can highly recommend to change the UPN and go with the default attributes whenever possible. https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/operations/configuring-alternate-logi...

 

@Dominik Hoefling 

What can go wrong ?   It's only being used to create their identities i.e. usernames online on office 365 and then their mailbox is going to be synchronized, the on premises server will be decommissioned/

 

I think you are not understanding my question or i phrased it wrong.

I know i can configure alternative id (and that is what i plan to do) use mail attribute as alternative ID so i don't have to edit user log in id for office 365.

 

However, i would like to know how i could do this so that the users get both aliases created automatically.

 

Here's a better example:

Imagine a user with a name Jenny Dear

User log on name is

dearj

UPN: example1.com

so we have dearj@example1.com as her windows log in username-  not that they use it.

However, her email is

Jenny@EXAMPLE1.COM

So the AD attribute has this:

mail: Jenny@example1.com

proxyaddress:

SMTP: Jenny@example1.com

smtp: jenny@example2.org

 

I want to use the mail attribute as an alternative log on id, so that when 400 users get synchronized, all their username for office 365 will be their mail attribute i.e. Jenny@example1.com

Perfect scenario is, they also get an alias Jenny@example2.org created in the process so i don't have to go and update all of them manually.

After their identities are created + passwords synchronized, the mailbox move is done, the exchange server will be killed. We won't be keeping it around for long, hopefully a week or two.

 

@Ferzaer2 Yes, I actually got it :)

 

1. You can't remove any Exchange as long as AAD Connect is in place. If you want to remove Exchange, you "have to" switch to cloud-only accounts. It's not supported to change Exchange attributes in AD/ADSIEDIT.

 

2. You can configure the mail-attribute in Azure AD Connect as the logon name (UPN in Azure) which is explained in my link. A user can only have one logon name (UPN) and I believe you mean by alias another email address, right? If yes, use email address policies on-premises, then Exchange will add all your required aliases to the mailbox and these addresses will be synchronized to Exchange Online with AAD Connect and you can receive emails on those aliases as well.

@Dominik Hoefling 

 

We are getting somewhere. I really appreciate your input. Here is a bit more clarification.

 

1. We are not going to keep ADconnect around, we plan on moving all mailboxes/users to the cloud and killing exchange(after we uninstall adconnect). We don't need password synchronization, etc. We are going to keep AD on premises for file sharing etc, and users will continue to use their current log ins as if nothing changed. Only email access will be changed and they will have two passwords moving forward.

 

2. Our on premises exchange email policy has a rule where whenever we create

jenny@example1.com , they also have an alias created jenny@example2.org (yes, different domains) which is why in AD attribute the proxy address has two smtp (different domains for same user linked to one mailbox).

 

However,

I would like to create in office 365 a user log in based on the mail attribute which will result in

 

Primary email address and username: jenny@example1.com
Alias: jenny@example2.org

 

 

Is there a way to do this  iautomatically or with powershell based on the proxy address since they already have SMTP: jenny@example1.com (with capital so that it's the primary domain/address) and the second one smtp: jenny@example2.org as the second one or alias.

 

 

Or for example, i synch them and their identities are created as:

jenny@example1.com, can i use powershell to create an alias for them automatically for each user so they become

jenny@example2.org , basically taking whatever is after @ i.e. example1.com and replacing that with example2.org and thus creating an alias automatically ?

 

I feel like i will have to do this manually, but still looking for ways.

 

@Ferzaer2 sure thing, you're welcome!

1) got it, thanks

2) "I would like to create in office 365 a user log in based on the mail attribute which will result in

Primary email address and username: jenny@example1.com
 
Let me try to explain it: UPN + primary smtp address: jenny@example1.com --> Default user login name (UPN) in Azure if you don't configure alternate login id in Azure AD Connect.
Alias: jenny@example2.org --> what do you mean by alias? Additional proxy address? mail? mailnickname? If you want this as the UPN/login name in Azure, you can use whatever attribute you want as your logon name in Azure AD Connect.
 
If you mean the "alias" in the Microsoft 365 admin center: you can choose a user login name (UPN) from any existing smtp addresses (alias). Is this the feature you are trying to use (see attached screenshot)?
 
If yes: this can be achieved by email address polices or, of course, you can add the alias afterwards in Azure via PowerShell for all your users in bulk.

@Dominik Hoefling 

Hey, i think images help. Yes, I was referring to that alias in microsoft 365 center.

I have both example1.com and example2.org added to my tenant.

However, when i synchronize users to create their identities i would like their primary address to be

jenny@example1.com , and then either later/ or in the same step add the alias

jenny@example2.org - because a lot of people send them emails at the second email.

So if someone sends them an email at jenny@example2.org i want that email to be forwarded to jenny@example1.com - from what i read this is the way to go.

 

Now, I'm attaching some photos so that you see that the users log on name or username for domain computers is "dearj" and when i synchronize and if i use the default identity , their primary address on office 365 will be

dearj@example1.com

However, i want to avoid this as it will cause confusion when their email is jenny@example1.com

 

Rather than updating user log on name on the on premises AD  for all of them manually before synchronization i can use the mail attribute from AD attributes as the alternate identity for add connect and this should create in microsoft 365 their username/id based on the mail attribute. Right ?

 

See attached images

 

I am not sure what could go wrong since we won't be keeping the hybrid for very long ? Every mail attribute is unique if there are two Jenny, then the second one gets a mail attribute Jenny2@example1.com

 

 

Thanks again for being involved and helping me.

 

 

@Dominik Hoefling 

 

Don't know what happened to my last reply (it just went missing) but yes, I am referring to the alias in microsoft 365.

 

Some users receive email at example2.org domain and i would like whatever email they receive at jenny@example2.org gets redirected to jenny@example1.com - and this seems the way to go about it.

 

Now, I'm attaching photos so you use what their upn looks like now with the user log on name, it's

dearj@example1.com , if i use this as my default identity for add connect then their microsoft office 365 account primary address will be dearj@example1.com

 

However, their email is jenny@example1.com and we want this to be created as their microsoft office 365 primary address.

 

See the attached photos.

It seems the only way is to use alternate log in for azure ad connect  and choose mail attribute which corresponds to jenny@example1.com

UPNuserlogonname.PNG

ProxyAddressAttribute.PNG

MailAttribute.PNG

 

 

Just wondering what can go wrong and why not go this way  ?  It seems the best /fastest way to achieve this.

There are no two duplicate mail attributes and i guess we can add the alias manually or automatically with powershell.

   

@Ferzaer2 yes, a mailbox can have many different alias proxy addresses and the automatically get "redirected" to their primary address. Actually it's not a technical redirect, they just get into the mailbox itself. And yes, alternate login id is the best way how to achieve this.

 

Please refer to the following articles regarding UPN ne primary smtp address:
https://invorx.com/upn-should-match-your-primary-smtp-address-in-office-365/

https://blogs.perficient.com/2015/07/07/office-365-why-your-upn-should-match-your-primary-smtp-addre...

https://support.cloudhq.net/it-admin-office-365-why-your-user-principal-name-upn-should-match-your-e...

 

"... Yes, Microsoft did release a feature last year called “Alternate Login ID” that allows you to use an attribute other than UPN for your Office 365 login, but that feature comes with a list of limitations that you should be aware of."

 

It's the easiest way if you prepare your identities on-prem (e. g. email address policy to add all required alias and sync it to Azure), migrate your data, decommission your on-prem infrastructure. If you disable the dirsync afterwards in Azure, you can also change your objects there. Alternate login id (mail) is the way to go, but best practices is to change the UPN on-prem to your primary smtp address value.

@Dominik Hoefling 

I'm confused by this part Alternate login id (mail) is the way to go, but best practices is to change the UPN on-prem to your primary smtp address value.

 

Do you mean to change the user log on name from dearj to jenny@example1.com on prem before doing identity synchronization?  Please see the photo i attached.

 

The UPN part i.e. what comes after @ is already example1.com and it matches my primary smtp address value.

However, I'm mainly concerned with the part before @

@Ferzaer2 

Answer found here: https://blogs.perficient.com/2015/07/07/office-365-why-your-upn-should-match-your-primary-smtp-addre...

Thanks for the link.

 

Now, my only question is what is the best approach to create the alias with the second domain ? Before remote mailbox is done or after ?

Is there any powershell script that can do this or i can do it during directory/identity synchronization ?

 

@Ferzaer2 Do you mean to change the user log on name from dearj to jenny@example1.com on prem before doing identity synchronization?

--> exactly, always follow the simplest method and the best practices approach from Microsoft.

 

Now, my only question is what is the best approach to create the alias with the second domain ? Before remote mailbox is done or after ?

Is there any powershell script that can do this or i can do it during directory/identity synchronization ?

--> It's already there from your screenshot (one primary smtp address (SMTP) and one secondary smtp address (smtp). You can add the alias either manually, PowerShell, or email address policy on-prem. All those values will be synchronized to Exchange Online.

 

Prior migration:

1. Manually: ECP

2. PowerShell: Set-Mailbox "Dan Jump" -EmailAddresses @{add="dan.jump@northamerica.contoso.com","danj@tailspintoys.com","jenny@example1.com"}

3. Email address policy in ECP or via PowerShell: Get/Set-EMailAddressPolicy

 

After migration:

1. Manually: ECP

2. PowerShell: Set-RemoteMailbox "Dan Jump" -EmailAddresses @{add="dan.jump@northamerica.contoso.com","danj@tailspintoys.com","jenny@example1.com"}

 

Hope that helps.

@Dominik Hoefling 

 

Guys! I was reading the whole conversation because I am in same sort of situation.

 

Yes, choosing email as Syncing attribute will create users UPNs in office 365.

I need a clarification here..a mailbox having proxies addresses on-premises ,after migration to cloud , will these proxy addresses appear there? Keeping in mind that I only sync my email attribute based domain while proxy addresses are on different domain which is not syncing?

Short answers: no. You need to connect both domains / forests e.g. if you have an account and Exchange ressource forest setup.

@Dominik Hoefling 

Hi, sorry for late reply.

 

So since I already have two smtp proxy addresses on premises for each user , the alias should be created automatically ?

 

Also, one more question. I have decided to try and use a script to change each users UPN to

jenny@example1.com

 

However, I forgot to mention, I will have 3 domains in UPN.

example1.com (also verified in office 365 and used as main upn for users, meaning all users will have a upn of: name@example1.com set prior migration).

example2.org (also verified in office 365, no user will have this as their upn)

example3.gov(not verified in office 365, no user will have this as their upn)

 

Will the example3.gov domain cause an issue since it's not verified in office 365 ? I will not be using it as a upn ? I think there's an option to just ignore it if it's not verified when doing identity synchronization and that the most important part is the actual upn that is selected i.e.

jenny@example1.com for every user (and even though there are other domains, this will be the one that is used, correct )?

 

Thanks.

@Ferzaer2 So since I already have two smtp proxy addresses on premises for each user , the alias should be created automatically ? --> yes.

 

Will the example3.gov domain cause an issue since it's not verified in office 365 ? --> as long as no user has example3.gov as an email address, there will be no issues. If you want to sync these smtp addresses to O365, then you have to register it (but you don't have to add them as an additional UPN suffix in your on-prem AD).

@Dominik Hoefling 

"as long as no user has example3.gov as an email address, there will be no issues. If you want to sync these smtp addresses to O365, then you have to register it (but you don't have to add them as an additional UPN suffix in your on-prem AD)."

No, no user has the example3.gov as an email address and i don't want to sync it.

Also, no user has an upn suffix that ends in example3.gov.

However, the upn suffix is there - it's not being used, but it's there available to be picked up. 

So as long as no user has the upn suffix added to their log on, then it won't be an issue correct ? Even though it's available ?

 

Also, one more question, it seems everyone recommends using express settings, but is it an issue to use custom settings so i can choose two OU for synchronization , without synchronizing some local accounts from other OU that have no email address and are used purely for domain compute access?

 

Thanks again for everything.

 

Doesn’t matter if the UPN is there on-prem or not, right.

Express settings has the advantage that you will automatically receive updates (kind of auto updated) and the default configuration will be applied. Of course you can use the custom setting and configure OU filtering.

@Dominik Hoefling 

 

Got you. Since I plan on getting rid of ad connect soon after migration, i don't think i need updates.

 

I have one more question  ,but I'll make a separate thread about it.

 

Thanks for everything so far.