# 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:** [09.Май.2015 06:27:18 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:** 1\
**Showing post:** 4

<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 01:55:04 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.

---

_[View the full topic](https://meta.discourse.org/t/emails-sent-from-discourse-are-mis-categorized-as-promotional-in-gmail/28524)._
