# How Do I Set Up the E-Mail SMTP Server Required for Discourse?

**URL:** https://meta.discourse.org/t/how-do-i-set-up-the-e-mail-smtp-server-required-for-discourse/334267
**Category:** Support
**Created:** [November 3, 2024, 2:21pm UTC](https://meta.discourse.org/t/how-do-i-set-up-the-e-mail-smtp-server-required-for-discourse/334267 "2024-11-03T14:21:12Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Can](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@Can](https://meta.discourse.org/u/Can)
#### Post date: [November 3, 2024, 2:21pm UTC](https://meta.discourse.org/t/how-do-i-set-up-the-e-mail-smtp-server-required-for-discourse/334267/1 "2024-11-03T14:21:12Z")

</div>

Hello, I am new to discourse. So forgive me if my questions are simple.  
I rented a cloud from Hetzner. I will start Ubuntu installation and discourse installation but I don’t know how to set smtp email settings on the server. Is there any instruction how to set email settings?

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [November 3, 2024, 3:21pm UTC](https://meta.discourse.org/t/how-do-i-set-up-the-e-mail-smtp-server-required-for-discourse/334267/2 "2024-11-03T15:21:07Z")

</div>

You should be able to find all the info you need [here](https://meta.discourse.org/t/email-delivery-configuration-checklist/209839?silent=true) - the documentation category will have links for email help (see docs sidebar).

> [@Email delivery configuration checklist](https://meta.discourse.org/t/email-delivery-configuration-checklist/209839?silent=true):
>
> Email deliverability is complicated. Here are a few important things you should check first: Be sure to set the DISCOURSE\_NOTIFICATION\_EMAIL: correctly in your app.yml file. The domain specified in the “from” address of the emails you send is the domain your email will be validated against. Know how to view the raw source of the email in your mail client, so you can examine email headers for important clues. In Gmail, it is the “show original” option in the drop-down menu at the top right …

> [@Troubleshoot email on a new Discourse install](https://meta.discourse.org/t/troubleshoot-email-on-a-new-discourse-install/16326/):
>
> You just installed Discourse via [the install guide](https://github.com/discourse/discourse/blob/main/docs/INSTALL.md), but email doesn’t seem to work. Unfortunately this means you can’t log in as an admin to finalize the install. cry Let’s troubleshootize! Try the doctor woman_health_workerIf you run ./discourse-doctor it will check several ways that your mail configuration might be broken, and offer advice. Try that first. Did you enter email settings correctly? The simplest way is to run ./discourse-setup again. Did you enter everything correctly? B…

---

<div class="post-metadata">

### Author: ![Can](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@Can](https://meta.discourse.org/u/Can)
#### Post date: [November 3, 2024, 3:35pm UTC](https://meta.discourse.org/t/how-do-i-set-up-the-e-mail-smtp-server-required-for-discourse/334267/3 "2024-11-03T15:35:49Z")

</div>

I started service from brevo. I can’t do dns record operation from domain records. If I do, I will go to setup and other settings. There is actually a process that seems simple but very complicated. If I cannot do dns record and mail forwarding, I will have problems after installation. Is it unreasonable to make SMTP settings after discourse installation?

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [November 3, 2024, 3:41pm UTC](https://meta.discourse.org/t/how-do-i-set-up-the-e-mail-smtp-server-required-for-discourse/334267/4 "2024-11-03T15:41:31Z")

</div>

i don’t know anything about brevo but if you use the search feature you can find topics about it

> [@Discourse notification e-mail sending with Brevo(Sendinblue)](https://meta.discourse.org/t/discourse-notification-e-mail-sending-with-brevo-sendinblue/308342/6):
>
> These are the official guides from Brevo: Fairly simple process to set DKIM, DMARC and DNS records for mail sub-domain to authenticate mail and sender.

are you doing a [standard install](https://meta.discourse.org/t/142537?silent=true)?

---

<div class="post-metadata">

### Author: ![Can](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@Can](https://meta.discourse.org/u/Can)
#### Post date: [November 3, 2024, 5:22pm UTC](https://meta.discourse.org/t/how-do-i-set-up-the-e-mail-smtp-server-required-for-discourse/334267/5 "2024-11-03T17:22:04Z")

</div>

I’m trying to do a standard installation, I’m following the instructions, but I can’t get it to work, it’s taken me hours. It’s not for the casual user.

---

<div class="post-metadata">

### Author: ![Sidi\_Codet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidi_codet/32/455699_2.png) [@Sidi\_Codet](https://meta.discourse.org/u/Sidi_Codet)
#### Post date: [November 3, 2024, 5:30pm UTC](https://meta.discourse.org/t/how-do-i-set-up-the-e-mail-smtp-server-required-for-discourse/334267/6 "2024-11-03T17:30:08Z")

</div>

Hi @Can, could you please share your email configuration for a more traceable solution?

---

<div class="post-metadata">

### Author: ![Can](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@Can](https://meta.discourse.org/u/Can)
#### Post date: [November 4, 2024, 7:16am UTC](https://meta.discourse.org/t/how-do-i-set-up-the-e-mail-smtp-server-required-for-discourse/334267/7 "2024-11-04T07:16:51Z")

</div>

Except for email configuration  
After ./discourse-setup command  
I get the error -bash: ./discourse-setup:No such file or directory.

---

<div class="post-metadata">

### Author: ![Sidi\_Codet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidi_codet/32/455699_2.png) [@Sidi\_Codet](https://meta.discourse.org/u/Sidi_Codet)
#### Post date: [November 4, 2024, 7:24am UTC](https://meta.discourse.org/t/how-do-i-set-up-the-e-mail-smtp-server-required-for-discourse/334267/8 "2024-11-04T07:24:41Z")

</div>

@Can looks like the `./discourse-setup` command isn’t showing up because the Discourse Docker repo might not have been set up right. Try this:

1. Run `sudo -s` to switch to root.
2. Clone the repo:

```bash
git clone https://github.com/discourse/discourse_docker.git /var/discourse

```

3. Go to the directory:

```bash
cd /var/discourse

```

4. Set permissions (just in case):

```bash
chmod 700 containers

```

Once you’re in `/var/discourse`, you should be able to run `./discourse-setup`.

Give that a shot one more time and it should be working fine.

---

<div class="post-metadata">

### Author: ![Can](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@Can](https://meta.discourse.org/u/Can)
#### Post date: [November 4, 2024, 11:18am UTC](https://meta.discourse.org/t/how-do-i-set-up-the-e-mail-smtp-server-required-for-discourse/334267/9 "2024-11-04T11:18:08Z")

</div>

@Sidi_Codet Thank you, I will try again. Do you know of any video tutorials?
