# Email configuration issue

**URL:** https://meta.discourse.org/t/email-configuration-issue/282046
**Category:** Support
**Tags:** email
**Created:** [October 12, 2023, 5:32pm UTC](https://meta.discourse.org/t/email-configuration-issue/282046 "2023-10-12T17:32:34Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![agf1997](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@agf1997](https://meta.discourse.org/u/agf1997)
#### Post date: [October 12, 2023, 5:32pm UTC](https://meta.discourse.org/t/email-configuration-issue/282046/1 "2023-10-12T17:32:34Z")

</div>

I experiencing a configuration issue with email and I’m just not sure where to rectify the problem.

The “Visit Topic” buttom in the emails that are generated from the forum seem to have the wrong url.

 ![IMG_4487](https://global.discourse-cdn.com/meta/original/4X/0/0/4/0044e23dbf7740854b1508563aa55009d88ad58c.jpeg)  
 ![IMG_0718](https://global.discourse-cdn.com/meta/original/4X/9/6/7/96711faaeba023c5aee41f07651f8e9e551ed61e.jpeg)

The subdomain is associated with mailgun. I’m just not sure if this is a misconfiguration in mailgun or discourse or what I should do to correct it. Any guidance would be greatly appreciated.

Thanks in advance

---

<div class="post-metadata">

### Author: ![agf1997](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@agf1997](https://meta.discourse.org/u/agf1997)
#### Post date: [October 12, 2023, 5:47pm UTC](https://meta.discourse.org/t/email-configuration-issue/282046/2 "2023-10-12T17:47:25Z")

</div>

A little more info … I think this is related to Mailgun’s click tracking. The feature seems to indicate that links will be rewritten and I have a CNAME entry for email.m pointing to mailgun in my DNS. Not sure why the link it’s redirecting to the forum URL though.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 15, 2023, 11:22am UTC](https://meta.discourse.org/t/email-configuration-issue/282046/3 "2023-10-15T11:22:17Z")

</div>

I think it is link tracking too.

I guess your MUA is adding the warning.

You could turn off link tracking.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [October 15, 2023, 1:40pm UTC](https://meta.discourse.org/t/email-configuration-issue/282046/4 "2023-10-15T13:40:28Z")

</div>

> [@agf1997](#):
>
> not sure if this is a misconfiguration in mailgun or discourse

Mailgun is rewriting your links to it’s configured tracking URL.

Mailgun does not have a certificate for the configured tracking URL – it’s presenting it’s generic Mailgun certificate instead.

It’s clear this is a Mailgun misconfiguration.

---

<div class="post-metadata">

### Author: ![agf1997](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@agf1997](https://meta.discourse.org/u/agf1997)
#### Post date: [October 15, 2023, 6:24pm UTC](https://meta.discourse.org/t/email-configuration-issue/282046/5 "2023-10-15T18:24:06Z")

</div>

Not sure how to reconfigure correctly, so  
I shut off tracking in the meantime.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [November 14, 2023, 6:25pm UTC](https://meta.discourse.org/t/email-configuration-issue/282046/6 "2023-11-14T18:25:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
