# Wrong sending domain used

**URL:** <https://meta.discourse.org/t/wrong-sending-domain-used/43723>\
**Category:** Self-hosting\
**Created:** [May 5, 2016, 11:18am UTC](https://meta.discourse.org/t/wrong-sending-domain-used/43723 "2016-05-05T11:18:24Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![stadja](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@stadja](https://meta.discourse.org/u/stadja)\
**Post date:** [May 5, 2016, 11:18am UTC](https://meta.discourse.org/t/wrong-sending-domain-used/43723/1 "2016-05-05T11:18:24Z")

</div>

Hello guys,  
I know it’s a common problem,  
but I am searching everywhere and I can’t find any answer !!!

So here is the deal:

- I am running v1.6.0.beta1 +394
- My email configuration is:  
**address** [smtp.sparkpostmail.com](http://smtp.sparkpostmail.com)  
**port** 2525  
**domain** [ltn.io](http://ltn.io)  
**user\_name** SMTP\_Injection  
**authentication** plain  
**enable\_starttls\_auto** true
- when I try to send an email with the test button, all I have is:  
` [Sender] 550 5.7.1 Unconfigured Sending Domain <gmail.com>`

My **discourse.conf** is:

```
db_name = bitnami_discourse
db_host = /home/ltn/discourse/postgresql
db_port = 5432
db_pool = 25
hostname = "discourse.ltn.io"
db_username = ******
db_password = " *******"
redis_port = 6379
redis_path = ******

smtp_address = "smtp.sparkpostmail.com"
smtp_port = 2525
smtp_domain = 'ltn.io'
smtp_user_name = 'SMTP_Injection'
smtp_password = ' ******'
smtp_enable_start_tls = true
developer_email = " ***** @ltn.io"

```

Anyone can see a problem ? An explaination ? I have been trying to correct this for 2 days now !

Please help ? 🙂

---

_[View the full topic](https://meta.discourse.org/t/wrong-sending-domain-used/43723)._
