# About the SMTP config

**URL:** https://meta.discourse.org/t/about-the-smtp-config/365569
**Category:** Support
**Tags:** email, dev-install
**Created:** [May 10, 2025, 9:04am UTC](https://meta.discourse.org/t/about-the-smtp-config/365569 "2025-05-10T09:04:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![zhongziqi](https://avatars.discourse-cdn.com/v4/letter/z/e5b9ba/32.png) [@zhongziqi](https://meta.discourse.org/u/zhongziqi)
#### Post date: [May 10, 2025, 9:04am UTC](https://meta.discourse.org/t/about-the-smtp-config/365569/1 "2025-05-10T09:04:24Z")

</div>

I used Windows 10’s WSL2 to install Docker and deployed my own Discourse application.I modified the SMTP configuration items in discourse/config/discourse\_defaults.conf, and re-ran d/boot\_dev -p, d/rails s, and d/ember-cli, but the email still cannot be sent. I have no way of determining where the problem lies.Should I configure SMTP in discourse/config/discourse\_defaults.conf? I used d/mailhog to test, but the bash just kept repeating “[APIv1] KEEPALIVE api/v1/events”.Is there a convenient and obvious way to verify the validity of my SMTP configuration?

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [May 10, 2025, 9:40am UTC](https://meta.discourse.org/t/about-the-smtp-config/365569/3 "2025-05-10T09:40:32Z")

</div>

IIRC if you are using a development environment, you don’t need to set up an SMTP username and password.

Also:

> <https://github.com/discourse/discourse/blob/main/config/discourse_defaults.conf#L2-L4>

> [@zhongziqi](#):
>
> [APIv1] KEEPALIVE api/v1/events

That seems normal, since I also see that in my development environment’s console when running `mailhog`.

You’ll have to open port (I think) 8025 to view the mailhog page. There, you can see the emails sent.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [May 22, 2025, 12:18am UTC](https://meta.discourse.org/t/about-the-smtp-config/365569/4 "2025-05-22T00:18:13Z")

</div>

@zhongziqi welcome to our community! 👋 Did @NateDhaliwal’s post answer your question? If so you can close this topic by ticking the solutions button on his post.

If not, let us know if you’re still feeling stuck! Some people find it easier at first to just follow the [official install](https://meta.discourse.org/t/142537?silent=true) using a VPS rather than trying to start by setting up a dev install on their local machine.
