Hi SeanMSFT !
Thank you.
one additional thing came in my mind... What about the default email address policy?
This still uses the default onmicrosoft.com address/domain, even after changing the default domain to a custom domain and is being used e.g. if creating a new distribution list:
Get-EmailAddressPolicy | select name,priority,recipientfilter,*AddressTemplate*
Name : Default Policy
Priority : Lowest
RecipientFilter : Alias -ne $null
EnabledPrimarySMTPAddressTemplate : @<default>.onmicrosoft.com
EnabledEmailAddressTemplates : {SMTP:@<default>.onmicrosoft.com}
DisabledEmailAddressTemplates : {}
new-distributiongroup achwasbinichlustig
Name DisplayName GroupType PrimarySmtpAddress
---- ----------- --------- ------------------
achwasbinichlustig achwasbinichlustig Universal achwasbinichlustig@<default>.onmicrosoft.com
get-accepteddomain | ? {$_.Default -eq $true}
Name DomainName DomainType Default
---- ---------- ---------- -------
<custom>.com <custom>.com Authoritative True