How to set a different alias for the unsubscribe URL?

Your software
My Mautic version is: v4.4.7

Your problem
My problem is:

Our Mautic instance is hosted at
We also have an alias which points to the mautic instance as

When we setup email templates, the unsubscribe URL points to the internal_domain
How do I setup my email templates so that all links associated with mautic point to the main_domain and not the internal_domain?

Thanks & Regards,