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 https://mautic.internal_domain.com/
We also have an alias which points to the mautic instance as https://mautic.main_domain.com/

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,
Surya