# Trying to validate with mailjet, needs txt file or DNS entry

**URL:** https://meta.discourse.org/t/trying-to-validate-with-mailjet-needs-txt-file-or-dns-entry/138508
**Category:** Self-hosting
**Created:** [14 januari 2020 om 00:52 UTC](https://meta.discourse.org/t/trying-to-validate-with-mailjet-needs-txt-file-or-dns-entry/138508 "2020-01-14T00:52:59Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![tpetrov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tpetrov/32/164643_2.png) [@tpetrov](https://meta.discourse.org/u/tpetrov)
#### Post date: [14 januari 2020 om 10:28 UTC](https://meta.discourse.org/t/trying-to-validate-with-mailjet-needs-txt-file-or-dns-entry/138508/3 "2020-01-14T10:28:37Z")

</div>

Recently had this issue. Here’s what fixed it:

> [@Troubleshoot email on a new Discourse install](https://meta.discourse.org/t/troubleshoot-email-on-a-new-discourse-install/16326/2):
>
> ## Is the email domain correct?
> 
> The default email from address is based on the install domain plus subdomain, so if your URL is `discourse.example.com` it will be:
> 
> `noreply@discourse.example.com`
> 
> But if your mail provider is expecting:
> 
> `noreply@example.com`
> 
> … you may have problems! To get around this, edit and uncomment this line in `app.yml`
> 
> ```plaintext
> ## If you want to set the 'From' email address for your first registration, uncomment and change:
> #- exec: rails r "SiteSetting.notification_email='noreply@example.com'"
> ## After getting the first signup email, re-comment the line. It only needs to run once.
> 
> ```
> 
> You’ll need to issue a rebuild after uncommenting the above line and setting the from email address as required.
> 
> You can also change this from the command line, if needed:
> 
> ```plaintext
> ./launcher enter app
> rails r "SiteSetting.notification_email = 'discourse@yoursite.com'"
> exit
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/trying-to-validate-with-mailjet-needs-txt-file-or-dns-entry/138508)._
