I'm following this guide to set up email notifications in AEM via OAuth, as it is required to send emails via Microsoft Office 365.
https://experienceleague.adobe.com/docs/experience-manager-65/administering/operations/notification....
The question I have is about the "Redirect Url" configured in Azure, and the "AuthCode Redirect Url" on the "CQ Mailer SMTP OAuth2 Provider" configuration.
The documentation just gives the value of http://localhost:4503/services/mailer/oauth2/token but doesn't explain how / why this URL is used. It seems like this is a placeholder but it's not exactly clear how it needs to be replaced for each server?
We are actually setting up email on the Author server, so should this be on port 4502? And should the URL be the fully qualified externally resolvable URL for the server rather than localhost? It is a bit confusing as the documentation reads like this is a set value rather than something that should be set according to the specific environment.