# New Discourse Instance + SMTP

**URL:** <https://meta.discourse.org/t/new-discourse-instance-smtp/95866>\
**Category:** Self-hosting\
**Created:** [28.Август.2018 21:13:58 UTC](https://meta.discourse.org/t/new-discourse-instance-smtp/95866 "2018-08-28T21:13:58Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Iceman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iceman/32/181309_2.png) [@Iceman](https://meta.discourse.org/u/Iceman)\
**Post date:** [28.Август.2018 21:13:58 UTC](https://meta.discourse.org/t/new-discourse-instance-smtp/95866/1 "2018-08-28T21:13:58Z")

</div>

Hi Guys,

Yes, the old and classic issue with E-Mail (the favorite “tech” of our beloved @codinghorror ). I’m trying to set up another Discourse installation in a totally different context (being that my main one already works and is using Sparkpost) but I can’t, for the life of me, put this to work, after reading all sorts of posts and docs here in Meta, without success, I ask your help.

I’ve tried three different setups: using another machine’s PostFix Installation, trying to use a container with Dockermail (if you have any other that you recommend for this, please forward me) and using gmail itself.

Being that gmail is G-Suite and SMTP is actually supported, I tried with something like this:

```
  DISCOURSE_SMTP_ADDRESS: smtp.gmail.com
  DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_ENABLE_START_TLS: true
  #DISCOURSE_SMTP_AUTHENTICATION: none
  DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
  DISCOURSE_SMTP_USER_NAME: <user@domain.com>
  DISCOURSE_SMTP_PASSWORD: <pass>

```

This seems like an overkill but I already tried with all sorts of options, without them, etc. The closests I’ve been is with gmail and I randomly receive some Registration Confirmation Mails **hours** later. With the setup as you see it above I get the following:

> 530 5.7.0 Must issue a STARTTLS command first.

Which to me doesn’t make sense, since I’m already enabling START\_TLS right there, am I missing anything?

If I tweak a little (like having the “vanilla setup” with only Address, Port, Enable\_Start\_TLS, User and Pass I get:

> end of file reached

I’ve been trying things for the past few days and I’ve already rebuilt discourse so many times that I can assure that my hatred for mail is surpassing that of Jeff’s. Can someone throw some light into this?

Thanks in advance

---

_[View the full topic](https://meta.discourse.org/t/new-discourse-instance-smtp/95866)._
