# Emails sent from discourse are mis-categorized as "Promotional" in gmail

**URL:** https://meta.discourse.org/t/emails-sent-from-discourse-are-mis-categorized-as-promotional-in-gmail/28524
**Category:** Support
**Created:** [9 במאי,‏ 2015,‏ 6:27am UTC](https://meta.discourse.org/t/emails-sent-from-discourse-are-mis-categorized-as-promotional-in-gmail/28524 "2015-05-09T06:27:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![phi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/phi/32/116086_2.png) [@phi](https://meta.discourse.org/u/phi)
#### Post date: [9 במאי,‏ 2015,‏ 6:27am UTC](https://meta.discourse.org/t/emails-sent-from-discourse-are-mis-categorized-as-promotional-in-gmail/28524/1 "2015-05-09T06:27:18Z")

</div>

Hello, email sent from our (hosted) discourse instance seem to always appear in the “Promotion” tab of our user’s gmail account which ends up being confusing for most of them.  
There have been a few topics about this issue but didn’t find any solution and decided to create a new topic instead of necro-posting.

I did follow the howto instructions to configure SPF and DKIM.

Anyone with a solution to this issue?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [9 במאי,‏ 2015,‏ 8:40am UTC](https://meta.discourse.org/t/emails-sent-from-discourse-are-mis-categorized-as-promotional-in-gmail/28524/2 "2015-05-09T08:40:03Z")

</div>

This isn’t fixable with Discourse. You’d have to ask them to recategorize it as Forums.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [9 במאי,‏ 2015,‏ 7:08pm UTC](https://meta.discourse.org/t/emails-sent-from-discourse-are-mis-categorized-as-promotional-in-gmail/28524/3 "2015-05-09T19:08:59Z")

</div>

I have never seen it categorize as Promotion. Can you provide much more detail on your site, its URL, ip addresses,etc?

Also what happens when you send a test email through Discourse via Admin, Email, test to [https://www.mail-tester.com](https://www.mail-tester.com) – what does it tell you?

---

<div class="post-metadata">

### Author: ![phi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/phi/32/116086_2.png) [@phi](https://meta.discourse.org/u/phi)
#### Post date: [12 במאי,‏ 2015,‏ 1:55am UTC](https://meta.discourse.org/t/emails-sent-from-discourse-are-mis-categorized-as-promotional-in-gmail/28524/4 "2015-05-12T01:55:04Z")

</div>

Update on this: testing with [https://www.mail-tester.com](https://www.mail-tester.com) did show some issues with our spf records.

We use Google Apps and UserVoice and already had an spf record that was formated like this:  
`v=spf1 a mx include:_spf.google.com include:smtp1.uservoice.com ~all`

Adding support for discourse generated the following error when checking with mail-tester:  
`Maximum DNS-interactive terms limit (10) exceeded`

Removing `a mx` got us a score of 10/10 for our email test. It seems that it was something that was suggested by [UserVoice documentation](http://feedback.uservoice.com/knowledgebase/articles/75-modify-your-dns-records-to-ensure-ticket-emails-re) but not mentioned by Discourse or Google’s doc.

Maybe a DNS expert can give more information to make this useful for ppl running into a similar issue.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [21 ביולי,‏ 2022,‏ 1:33pm UTC](https://meta.discourse.org/t/emails-sent-from-discourse-are-mis-categorized-as-promotional-in-gmail/28524/6 "2022-07-21T13:33:32Z")

</div>


