Hi, nice to be part of this community. It would be great, if someone with similar setup could help me out with the following:
My Mautic version is: 3.2.1 (we observed that already with 2.16.x)
My PHP version is: PHP 7.3.25
My Database type and version is: MariaDB
Our Mautic installation runs on a machine with hostname internal-hostname.domain.com . The machine is accessible from the internet (e…g by tracking urls, preference center links etc.) through a different url/hostname (https://external-sitename.domain.com), which is configured as the Site Url in mautic.
When we send emails, the site_url must be placed into outgoing emails, otherwise the email recipients are not able to access any urls in the emails.
When building a segment email, emails can be send either efecctively using the “Send” button, or as a test (Send Test).
When we send emails as a test, the URLs are substituted correctly with the site_url (external hostname).
When we do a “real” send, the URLs are substituted with the internal hostname, which makes URLs broken.
Has anyone experienced a similar behaviour and knows how to solve that?
These errors are showing in the log:
There are no error in the log.
Steps I have tried to fix the problem:
- checked local.php to contain the correct setting for site_url
- repeated deployments to minimize risk of deployment/config issues
- checked community (there is a similar issue Issue with tracking/redirect urls - Support - Mautic Community Forums, but I coud not figure out a solution)
Thanks a lot in advance and best regards