# Gmail & other popular email services not receiving my email

**URL:** <https://meta.discourse.org/t/gmail-other-popular-email-services-not-receiving-my-email/57873>\
**Category:** Support\
**Created:** [2017 年2 月 24 日 03:50 UTC](https://meta.discourse.org/t/gmail-other-popular-email-services-not-receiving-my-email/57873 "2017-02-24T03:50:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

作者： ![Kimberly\_Boynton](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kimberly_boynton/32/68166_2.png) [@Kimberly\_Boynton](https://meta.discourse.org/u/Kimberly_Boynton)\
发布日期： [2017 年2 月 24 日 03:50 UTC](https://meta.discourse.org/t/gmail-other-popular-email-services-not-receiving-my-email/57873/1 "2017-02-24T03:50:42Z")

</div>

DISCOURSE\_SMTP\_ADDRESS: [mail.domain.com](http://mail.domain.com) # required  
DISCOURSE\_SMTP\_PORT: 587 # (optional, default 587)

# DISCOURSE\_SMTP\_USER\_NAME: login # required

#DISCOURSE\_SMTP\_PASSWORD: pw # required, WARNING the char ‘#’ in pw can cause problems!

DISCOURSE\_SMTP\_ENABLE\_START\_TLS: true

If I enable the username and password it gives me a 500 error about command not recognized. If I don’t, the logs say the email is sent and it DOES send to my account on my domain if i say to, but it does not send to gmail or yahoo emails.

I have an SSL cert that I tested and is valid. I have tried multiple things and spent around 14 hours trying to get this working. I don’t know why its not sending, the same things are used for my other services, and they both are capable of sending to gmail and yahoo.

---

<div class="post-metadata">

作者： ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
发布日期： [2017 年2 月 24 日 04:07 UTC](https://meta.discourse.org/t/gmail-other-popular-email-services-not-receiving-my-email/57873/2 "2017-02-24T04:07:09Z")

</div>

At what stage of the delivery process is it failing? What do the relevant logs say about the failure?

---

<div class="post-metadata">

作者： ![Kimberly\_Boynton](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kimberly_boynton/32/68166_2.png) [@Kimberly\_Boynton](https://meta.discourse.org/u/Kimberly_Boynton)\
发布日期： [2017 年2 月 24 日 04:11 UTC](https://meta.discourse.org/t/gmail-other-popular-email-services-not-receiving-my-email/57873/3 "2017-02-24T04:11:19Z")

</div>

Hey, sorry, I am just looking at it still. I found it’s being denied by the providers, probably bc I don’t have login enabled, but in that case i can’t because it says the command is unrecognized. I am trying to look into how to enable that (I am pretty sure its bc discourse is in its own docker container sending the email not on the location the mail server is directing from and therefore its not auto validated by the server and needs authentication or for the mail server to allow from that ip without authentication)

Now that i said that i just realized i can allow from a domain in [poste.io](http://poste.io) without signing in… which means i just need to find the ip for the docker container and maybe that will work

---

<div class="post-metadata">

作者： ![Kimberly\_Boynton](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kimberly_boynton/32/68166_2.png) [@Kimberly\_Boynton](https://meta.discourse.org/u/Kimberly_Boynton)\
发布日期： [2017 年2 月 24 日 04:16 UTC](https://meta.discourse.org/t/gmail-other-popular-email-services-not-receiving-my-email/57873/4 "2017-02-24T04:16:17Z")

</div>

You don’t happen to know one of the following:

- How I would make it so [poste.io](http://poste.io)’s server lets me use auth login
- How to find what external ip the docker container is sending from

---

<div class="post-metadata">

作者： ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
发布日期： [2017 年2 月 24 日 04:18 UTC](https://meta.discourse.org/t/gmail-other-popular-email-services-not-receiving-my-email/57873/5 "2017-02-24T04:18:28Z")

</div>

> [@Kimberly\_Boynton](#):
>
> How I would make it so [poste.io](http://poste.io)’s server lets me use auth login

No. That would be a question for the `poste.io` support people.

> [@Kimberly\_Boynton](#):
>
> How to find what external ip the docker container is sending from

```
docker exec app curl http://icanhazip.com

```

---

<div class="post-metadata">

作者： ![Kimberly\_Boynton](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kimberly_boynton/32/68166_2.png) [@Kimberly\_Boynton](https://meta.discourse.org/u/Kimberly_Boynton)\
发布日期： [2017 年2 月 24 日 04:19 UTC](https://meta.discourse.org/t/gmail-other-popular-email-services-not-receiving-my-email/57873/6 "2017-02-24T04:19:37Z")

</div>

I figured it out actually 🙂 Thanks for replying to me, if you hadn’t I wouldn’t have typed that long message and figured it out lol.

Found the ip with docker inspect then i added it to [poste.io](http://poste.io) so that it would allow not authenticating with that ip.

---

<div class="post-metadata">

作者： ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
发布日期： [2017 年2 月 24 日 04:22 UTC](https://meta.discourse.org/t/gmail-other-popular-email-services-not-receiving-my-email/57873/7 "2017-02-24T04:22:00Z")

</div>

I’ll be a [rubber duck](https://en.wikipedia.org/wiki/Rubber_duck_debugging) any time.

---

<div class="post-metadata">

作者： ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
发布日期： [2017 年2 月 24 日 08:35 UTC](https://meta.discourse.org/t/gmail-other-popular-email-services-not-receiving-my-email/57873/8 "2017-02-24T08:35:59Z")

</div>


