# Discourse aws EC2 G Suite troubleshoting

**URL:** https://meta.discourse.org/t/discourse-aws-ec2-g-suite-troubleshoting/62931
**Category:** Support
**Created:** [May 18, 2017, 9:06am UTC](https://meta.discourse.org/t/discourse-aws-ec2-g-suite-troubleshoting/62931 "2017-05-18T09:06:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![a.prisniak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/a.prisniak/32/72406_2.png) [@a.prisniak](https://meta.discourse.org/u/a.prisniak)
#### Post date: [May 18, 2017, 9:06am UTC](https://meta.discourse.org/t/discourse-aws-ec2-g-suite-troubleshoting/62931/1 "2017-05-18T09:06:35Z")

</div>

I’ve fresh installation of discourse on amazon EC2 instance and have been configured SMTP with G suite corporate account. But can’t finish initial settings because of SMTP. I’ve tried different smtp settings but with no success.

```
DISCOURSE_SMTP_ADDRESS: smtp.gmail.com
DISCOURSE_SMTP_PORT: 465
DISCOURSE_SMTP_USER_NAME: my@corporate.email
DISCOURSE_SMTP_PASSWORD: "mypassword"
DISCOURSE_SMTP_ENABLE_START_TLS: true   

```

This is my final settings.

And I’ve read a lot of topics on discourse forum but haven’t solution. Please help.  
[https://meta.discourse.org/t/anyone-using-gmail-for-smtp/41371](https://meta.discourse.org/t/anyone-using-gmail-for-smtp/41371)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 18, 2017, 9:13am UTC](https://meta.discourse.org/t/discourse-aws-ec2-g-suite-troubleshoting/62931/2 "2017-05-18T09:13:00Z")

</div>

I suggest the official email troubleshooting #howto.

Also if you read that topic you’d see

> Not entirely sure what you’re asking – you mean in the context of that error? **Yes, the G Suite (neé Google Apps) domain is custom, not @gmail.com.**

So if your `SMTP_ADDRESS` is [gmail.com](http://gmail.com) that already seems wrong. You should be using your actual domain there, as configured in G suite.

> **[Send email from a printer, scanner, or app  |  Gmail  |  Google Workspace Help](https://knowledge.workspace.google.com/admin/gmail/send-email-from-a-printer-scanner-or-app?hl=en&visit_id=639158881877626751-1255224532&rd=1)**

Or per the above, `smtp-relay.gmail.com` maybe?

---

<div class="post-metadata">

### Author: ![a.prisniak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/a.prisniak/32/72406_2.png) [@a.prisniak](https://meta.discourse.org/u/a.prisniak)
#### Post date: [May 18, 2017, 9:30am UTC](https://meta.discourse.org/t/discourse-aws-ec2-g-suite-troubleshoting/62931/3 "2017-05-18T09:30:02Z")

</div>

Thx Jeff, I’ve configured SMPT as it shown in google instructions. And I’ve also try [smtp-relay.gmail.com](http://smtp-relay.gmail.com) and [smtp.gmail.com](http://smtp.gmail.com) ports 465, 587.

My email not a \*\*\*\*@gmail.com. I’m using exact my G Suite email account.

**So, finally I did it!**

DISCOURSE\_SMTP\_ADDRESS: [smtp.gmail.com](http://smtp.gmail.com)  
DISCOURSE\_SMTP\_PORT: 465 → And I’ve also changed port to 587  
DISCOURSE\_SMTP\_USER\_NAME: my@corporate.email  
DISCOURSE\_SMTP\_PASSWORD: “mypassword” ← error here. I’ve removed quotes and all works just fine.  
DISCOURSE\_SMTP\_ENABLE\_START\_TLS: true

By the way quotes where added while bootstrapping.

Thx for reply

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:44pm UTC](https://meta.discourse.org/t/discourse-aws-ec2-g-suite-troubleshoting/62931/4 "2024-06-08T12:44:47Z")

</div>

This topic was automatically closed after 2578 days. New replies are no longer allowed.
