# Not receiving Activation Email

**URL:** https://meta.discourse.org/t/not-receiving-activation-email/62630
**Category:** Self-hosting
**Created:** [May 13, 2017, 3:35am UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630 "2017-05-13T03:35:01Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![naupe](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@naupe](https://meta.discourse.org/u/naupe)
#### Post date: [May 13, 2017, 3:35am UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/1 "2017-05-13T03:35:01Z")

</div>

Hello Discourse community,

This is a continuation from this thread: [Attempting to install Discourse on private Apache Server - #5 by naupe](https://meta.discourse.org/t/attempting-to-install-discourse-on-private-apache-server/59586/5)

Well, I have installed Ubuntu 16.04 from scratch (this time without Apache) and have successfully gotten the “Congratulations, you installed Discourse!” screen. When I go to register the Admin account, and click Register, I’m told that I’m supposed to receive a confirmation email … and I haven’t received one. What am I doing wrong?

So, this is currently how I have my discourse-setup:  
**Hostname:** [epoch-nexus.net](http://epoch-nexus.net)  
**Email:** [admin@epochgames.co.uk](mailto:admin@epochgames.co.uk)  
**SMTP address:** [smtp.sparkpostmail.com](http://smtp.sparkpostmail.com)  
**SMTP port:** 465  
**SMTP username:** SMTP\_Injection  
**SMTP password:** [My\_generated\_API-Key\_from\_Sparkmail]

In the past, I also tried setting up [admin@epochgames.co.uk](mailto:admin@epochgames.co.uk) as the SMTP username, but I realize that this email address can’t be used for SMTP:  
**Hostname:** [epoch-nexus.net](http://epoch-nexus.net)  
**Email:** [admin@epochgames.co.uk](mailto:admin@epochgames.co.uk)  
**SMTP address:** [cloud18.unlimitedwebhosting.co.uk](http://cloud18.unlimitedwebhosting.co.uk)  
**SMTP port:** 465  
**SMTP username:** [admin@epochgames.co.uk](mailto:admin@epochgames.co.uk)  
**SMTP password:** [admin@epochgames.co.uk\_password]

[epoch-nexus.net](http://epoch-nexus.net) is the hostname of the machine to host Discourse. That admin email address is an email address created on our team’s hosting site ([cloud18.unlimitedwebhosting.co.uk](http://cloud18.unlimitedwebhosting.co.uk) is the provider), and I’m trying to use Sparmail as mentioned in this link:

[discourse/docs/INSTALL-email.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-email.md)

I’ve set up the SMTP address and username as per the link, and created an API Key on Sparkpost. Also on Sparkpost, I set up the Sending Domain as “[epoch-nexus.net](http://epoch-nexus.net)” (or should [epochgames.co.uk](http://epochgames.co.uk) be the Sending Domain?).

As you can probably tell, I’m not interested in using DigitalOcean hosting (as mentioned, I’d like to host Discourse on my own dedicated Ubuntu machine I’m creating for Discourse). I’ve been told before that DigitalOcean hosting isn’t necessary, and that this guide can mostly be followed for home setup: [discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)

So, what am I doing wrong? What should I do next? I really don’t understand how I need to setup email.

---

<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 13, 2017, 3:45am UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/2 "2017-05-13T03:45:10Z")

</div>

Follow the email troubleshooting #howto topic first. Step by step.

---

<div class="post-metadata">

### Author: ![naupe](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@naupe](https://meta.discourse.org/u/naupe)
#### Post date: [May 13, 2017, 12:41pm UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/3 "2017-05-13T12:41:41Z")

</div>

Thank you for the link. Here’s my progress so far:  
I’ve found that I was using the wrong port for Sparkpost: I should have been using 587. Here’s the new configuration:

> Hostname: [epoch-nexus.net](http://epoch-nexus.net)  
> Email: [admin@epochgames.co.uk](mailto:admin@epochgames.co.uk)  
> SMTP address: [smtp.sparkpostmail.com](http://smtp.sparkpostmail.com)  
> SMTP port: 587  
> SMTP username: SMTP\_Injection  
> SMTP password: [My\_generated\_API-Key\_from\_Sparkmail]

However, even after rebuilding with this port, still not receiving any emails. I’ve gone into the production log (less shared/standalone/log/rails/production.log), and found the following:

> Sent mail to [admin@epochgames.co.uk](mailto:admin@epochgames.co.uk) (60183.3ms)  
> Job exception: Net::ReadTimeout

> Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)

Why am I getting ReadTimeouts? And what is Redis?

And what are DKIM and SPF records? The site linked in the troubleshooting guide is information on using them for Mandrill. Do I need to use DKIM or SPF? And how would I set them up for Sparkport?

And how do I find out if the email domain I set is correct?

Sorry for so many questions. I’m trying to follow the troubleshooting guide, but it doesn’t give very detailed instructions in certain sections.

---

<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 13, 2017, 6:27pm UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/4 "2017-05-13T18:27:07Z")

</div>

Your Discourse install is broken. Did you follow the official setup guide exactly, step by step, with no deviation?

---

<div class="post-metadata">

### Author: ![naupe](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@naupe](https://meta.discourse.org/u/naupe)
#### Post date: [May 14, 2017, 12:48am UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/5 "2017-05-14T00:48:26Z")

</div>

I’ve followed the instructions from the step involving “Install Docker / Git”. I don’t want to install Discourse on a Cloud Server: I want to install Discourse on a home Ubuntu machine of mine. I wish there was Discourse instructions for installing Discourse on a home system, but I’ve only ever been directed to the Cloud one:

> <https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md>

Is there another “official setup guide”?

---

<div class="post-metadata">

### Author: ![sulliops](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sulliops/32/571951_2.png) [@sulliops](https://meta.discourse.org/u/sulliops)
#### Post date: [May 14, 2017, 1:01am UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/6 "2017-05-14T01:01:15Z")

</div>

No there is only the one. Actually, I installed my first Discourse forum today, and when trying to use Sparkpost nothing worked. Also, sparkpost was flagged as spam. I suggest using mailgun or sendgrid (I’m currently using sendgrid and it works fine).

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 14, 2017, 1:14am UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/7 "2017-05-14T01:14:54Z")

</div>

> [@naupe](#):
>
> install Discourse on a home Ubuntu machine

I followed this to install Discourse in a VM with Ubuntu  
It works, but I don’t do email with it so YMMV

> [@Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727):
>
> warning This guide covers installation instructions in a development environment. For a production guide see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on Ubuntu or Debian to hack on and develop with? We’ll assume that you work locally and don’t have Ruby/Rails/Postgres/Redis installed on your Ubuntu or Debian system. Let’s begin! Requirements We suggest having at least 4 GB RAM and 2 CPU cores. Current compatibility: O…

---

<div class="post-metadata">

### Author: ![naupe](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@naupe](https://meta.discourse.org/u/naupe)
#### Post date: [May 14, 2017, 2:28am UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/8 "2017-05-14T02:28:04Z")

</div>

Well that stinks that Sendgrid isn’t completely free. I wish I could just use my current web domain where we already have emails set up, as opposed to paying another site.

Maybe Mailjet will work (that one is completely free)? I suppose it’s worth a try.

---

<div class="post-metadata">

### Author: ![naupe](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@naupe](https://meta.discourse.org/u/naupe)
#### Post date: [May 14, 2017, 2:30am UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/9 "2017-05-14T02:30:55Z")

</div>

Thank you for that link, that looks really helpful! So it’s a fully working Discourse forum, just doesn’t send out emails?

If I did this set up, can I still have people outside my local network register accounts and post on Discourse? But then don’t I need email functionality in order for Discourse to send out activation emails?

---

<div class="post-metadata">

### Author: ![sulliops](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sulliops/32/571951_2.png) [@sulliops](https://meta.discourse.org/u/sulliops)
#### Post date: [May 14, 2017, 2:34am UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/10 "2017-05-14T02:34:17Z")

</div>

If you are a student you can signup for GitHub for Education, which gives you a free sendgrid account. That’s how I did it. You can check it out and apply here (if you are a student).

> **[GitHub Student Developer Pack](https://education.github.com/pack)**
>
> The best developer tools, free for students. Get your GitHub Student Developer Pack now.

Otherwise the issue with the development installation is that its meant only for plugin development and such - anyone who tries to sign up will not be able to because they will not receive an activation email. But, you could do that and activate each account manually.

Mailjet should work fine if it’s free.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [May 14, 2017, 9:41am UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/11 "2017-05-14T09:41:41Z")

</div>

> [@naupe](#):
>
> I wish I could just use my current web domain where we already have emails set up, as opposed to paying another site.

As long as you already have a way to deliver mails via SMTP from the server hosting Discourse, this should work fine – a commercial mail provider is simply recommended because they tend to give better deliverability with less work.

And yes, please don’t use a development install for production use, that’s not supported for good reasons. However, you should be able to follow the Docker-based install on any modern Linux host that supports Docker 🙂

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 14, 2017, 9:23pm UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/12 "2017-05-14T21:23:48Z")

</div>

> [@naupe](#):
>
> So it’s a fully working Discourse forum, just doesn’t send out emails?

It could be that it is possible to have it do email stuff.  
It does have mailcatcher.  
It’s that I use it only to test various Core and plugin code, and emails are not part of my testing.

To create new accounts I register using a fake email address  
eg. `TestUser3 testuser3@localhost.com`  
and then as Admin go to the users page and activate the account.

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [May 14, 2017, 11:36pm UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/13 "2017-05-14T23:36:17Z")

</div>

> [@naupe](#):
>
> I don’t want to install Discourse on a Cloud Server

Remember:

 ![](https://global.discourse-cdn.com/meta/original/3X/8/0/80350cf847595c0bc3b831276e3f5c45a0ba16bb.jpg)

The “cloud” install instructions will work on any machine that is capable of running Docker, and has sufficient resources (diskspace, RAM, etc). They’re called “cloud” install instructions because that’s where most people are going to use them, “in the cloud”. Which is just someone’s else’s computer.

---

<div class="post-metadata">

### Author: ![naupe](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@naupe](https://meta.discourse.org/u/naupe)
#### Post date: [May 22, 2017, 11:41pm UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/14 "2017-05-22T23:41:41Z")

</div>

Alright guys, I got the Activation Email (used SparkPost Mail with this guide I found: [Using SparkPost with Discourse](https://www.sparkpost.com/docs/integrations/discourse/)), and now Discourse is fully installed on my localhost!

What’s the issue now? Getting it to point to the local internet so others on my team can join Discourse (something I haven’t done before). Is there a recommended program for an Ubuntu user like myself? I’m afraid to install Apache, as it will likely overwrite my Discourse install on localhost as it’s done before.

Now maybe I need to rebuild Discourse, as currently for Hostname I put the exact localhost hostname in app.yml, as opposed to an alternative (like “discourse.[localhost\_name]”), which may interfere with other necessary networking software?  
Or I suppose I might need to do something with Docker? Docker seems to be installed correctly as I receive a Hello message when I run “sudo docker run hello-world” as per this guide: [Install Docker Engine on Ubuntu | Docker Docs](https://docs.docker.com/engine/installation/linux/ubuntu/#install-from-a-package)

Should I open a new thread for this?

---

<div class="post-metadata">

### Author: ![naupe](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@naupe](https://meta.discourse.org/u/naupe)
#### Post date: [May 24, 2017, 9:06am UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/15 "2017-05-24T09:06:10Z")

</div>

Silly me! I just needed to port forward 80 of my machine’s local IP. It’s all working now. However, I’m finding problems with the invite email URL containing my hostname as opposed to my IP Address, but I’ll open a new thread for that.

This thread can be locked.

---

<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 24, 2017, 9:13am UTC](https://meta.discourse.org/t/not-receiving-activation-email/62630/16 "2017-05-24T09:13:48Z")

</div>


