# Setup with digital ocean and SMTP

**URL:** https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [September 29, 2018, 6:12pm UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356 "2018-09-29T18:12:30Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![UltraAviation1](https://avatars.discourse-cdn.com/v4/letter/u/e274bd/32.png) [@UltraAviation1](https://meta.discourse.org/u/UltraAviation1)
#### Post date: [September 29, 2018, 6:12pm UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356/1 "2018-09-29T18:12:30Z")

</div>

Hey!

I need some help with setting up, i can go into PUTTY etc,

I mainly need help with SMTP (getting a service or smthn), If you have discord please let me know if you can help me.

Thanks.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 29, 2018, 6:28pm UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356/2 "2018-09-29T18:28:29Z")

</div>

You want to use a service like mailgun. I believe that the cloud install document recommends several. If you want to run your own mail server, you’ll need to get help elsewhere. It’s just not that easy anymore.

---

<div class="post-metadata">

### Author: ![UltraAviation1](https://avatars.discourse-cdn.com/v4/letter/u/e274bd/32.png) [@UltraAviation1](https://meta.discourse.org/u/UltraAviation1)
#### Post date: [September 29, 2018, 6:28pm UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356/3 "2018-09-29T18:28:59Z")

</div>

Thanks, I just found a tutorial for mailgun 🙂

---

<div class="post-metadata">

### Author: ![UltraAviation1](https://avatars.discourse-cdn.com/v4/letter/u/e274bd/32.png) [@UltraAviation1](https://meta.discourse.org/u/UltraAviation1)
#### Post date: [September 29, 2018, 8:23pm UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356/4 "2018-09-29T20:23:19Z")

</div>

Update: I need some help with SMTP, I have it all set up, I upgraded my mailgun acc but It won’t send emails.

---

<div class="post-metadata">

### Author: ![UltraAviation1](https://avatars.discourse-cdn.com/v4/letter/u/e274bd/32.png) [@UltraAviation1](https://meta.discourse.org/u/UltraAviation1)
#### Post date: [September 29, 2018, 8:29pm UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356/5 "2018-09-29T20:29:29Z")

</div>

@pfaffman Pleasee see above ^

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [September 29, 2018, 8:40pm UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356/6 "2018-09-29T20:40:30Z")

</div>

Do you get anything in your mailgun logs?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 29, 2018, 8:50pm UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356/7 "2018-09-29T20:50:07Z")

</div>

Look at the mailgun logs; if they are empty. Use port 2525 for the SMTP port. You can re-run `discourse-setup` to change it.

---

<div class="post-metadata">

### Author: ![UltraAviation1](https://avatars.discourse-cdn.com/v4/letter/u/e274bd/32.png) [@UltraAviation1](https://meta.discourse.org/u/UltraAviation1)
#### Post date: [September 30, 2018, 5:12pm UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356/8 "2018-09-30T17:12:01Z")

</div>

`Failed: noreply@discourse.do.co → ultrahartford@gmail.com '[The Hotel Forum] Confirm new Admin Account' Server response: 550 5.7.1 Unauthenticated email from do.co is not accepted due to domain's DMARC 5.7.1 policy. Please contact the administrator of do.co domain if this was 5.7.1 a legitimate mail. Please visit 5.7.1 https://support.google.com/mail/answer/2451690 to learn about the 5.7.1 DMARC initiative. g13-v6si1623047qtq.329 - gsmtp`

From Mailgun

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 30, 2018, 6:08pm UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356/9 "2018-09-30T18:08:44Z")

</div>

The links in the message you pasted tell you exactly what the problem is and how to fix it.

It’s possible that sending to [http://www.mail-tester.com](http://www.mail-tester.com) will give more info.

---

<div class="post-metadata">

### Author: ![UltraAviation1](https://avatars.discourse-cdn.com/v4/letter/u/e274bd/32.png) [@UltraAviation1](https://meta.discourse.org/u/UltraAviation1)
#### Post date: [September 30, 2018, 6:14pm UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356/10 "2018-09-30T18:14:47Z")

</div>

I don’t know how to, Do I use mail tester for what?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [October 1, 2018, 8:58am UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356/11 "2018-10-01T08:58:25Z")

</div>

For the first,  
Go to settings and change your notification email.

Change it from `noreply@discourse.do.co` to something like `noreply@yourdomain.tld`

---

<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: [October 2, 2018, 12:43am UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356/12 "2018-10-02T00:43:45Z")

</div>

This also implies it is using the DO one click install, I believe they mess that email up in that exact way.

---

<div class="post-metadata">

### Author: ![PaulRBerg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulrberg/32/108286_2.png) [@PaulRBerg](https://meta.discourse.org/u/PaulRBerg)
#### Post date: [December 20, 2018, 3:52pm UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356/13 "2018-12-20T15:52:22Z")

</div>

I know this is not specifically related to Discourse, but if anyone from Digital Ocean reads this thread, would you consider adding a warning in the [Discourse One-Click Application](https://www.digitalocean.com/docs/one-clicks/discourse/) explaining how important is to set the “notification email” correctly? It remained set to `noreply@discourse.do.co` and that was a pain in the neck as I ended up switching 3 different SMTP providers due to lack of clear warnings in the logs of the first two.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 20, 2018, 10:31pm UTC](https://meta.discourse.org/t/setup-with-digital-ocean-and-smtp/98356/14 "2018-12-20T22:31:07Z")

</div>

Last I heard no one at Digital Ocean was maintaining the script.

What it really should do is to instruct people to run discourse-setup.
