Slack contact point integration not compatible with Mattermost webhook

Hello!

As the title suggests, I have not been able to hook up integration: slack with a Mattermost webhook.

When sending a test notification, I get the following error:

failed to send Slack message: failed to send request: Post “https://mattermost.com/hooks/...secret…”: dial tcp: lookup mattermost.com on ip-address: server misbehaving

Using curl to send a notification from terminal is working as expected, so the webhook itself is okay.

Does anyone have any idea why this is happening? I have set up the contact point according to the Mattermost documentation: https://docs.mattermost.com/administration-guide/scale/performance-alerting.html

Is this an issue on the Mattermost server side, or with Grafana itself? Any help would be appreciated.