# Configuration de la messagerie : comment créer un enregistrement SPF valide ?

**URL:** <https://meta.discourse.org/t/setting-up-email-how-to-create-a-valid-spf-record/129690>\
**Category:** Product Support\
**Created:** [Septembre 27, 2019, 6:25 UTC](https://meta.discourse.org/t/setting-up-email-how-to-create-a-valid-spf-record/129690 "2019-09-27T18:25:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**Post date:** [Septembre 27, 2019, 7:25 UTC](https://meta.discourse.org/t/setting-up-email-how-to-create-a-valid-spf-record/129690/2 "2019-09-27T19:25:39Z")

</div>

Est-il possible que votre e-mail de notification provienne d’un domaine différent de celui que vous avez validé dans Mailgun ?

Par exemple, le domaine validé dans Mailgun est `mg.example.com` et vous utilisez un e-mail de notification comme `noreply@discuss.example.com` ?

Si c’est le cas, c’est probablement ce qui cause le problème. Essayez de modifier l’e-mail de notification en `noreply@mg.example.com`.

---

_[View the full topic](https://meta.discourse.org/t/setting-up-email-how-to-create-a-valid-spf-record/129690)._
