Question: how to change email address for teams?
Answer: So if you want to change the teams email addresses with your custom domain, you need to change the generated groups' primary SMTP address, and then the change will be reflected on your teams. You can use Office 365 Exchange Online PowerShell to change the generated Office 365 groups primary SMTP addresses.