# When i use email :timeout?

**URL:** https://meta.discourse.org/t/when-i-use-email-timeout/360031
**Category:** Support
**Tags:** email
**Created:** [April 2, 2025, 2:17pm UTC](https://meta.discourse.org/t/when-i-use-email-timeout/360031 "2025-04-02T14:17:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tom\_Elon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_elon/32/496724_2.png) [@tom\_Elon](https://meta.discourse.org/u/tom_Elon)
#### Post date: [April 2, 2025, 2:17pm UTC](https://meta.discourse.org/t/when-i-use-email-timeout/360031/1 "2025-04-02T14:17:30Z")

</div>

I just install discourse, but when i test the email, it gives me a wrong notification.“Net::ReadTimeout with #TCPSocket:(closed)”  
i am sure the smtp service configuration is right.

---

<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: [April 3, 2025, 1:40am UTC](https://meta.discourse.org/t/when-i-use-email-timeout/360031/3 "2025-04-03T01:40:09Z")

</div>

Your vm will not allow you to connect to that port on that server.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 3, 2025, 1:44am UTC](https://meta.discourse.org/t/when-i-use-email-timeout/360031/4 "2025-04-03T01:44:46Z")

</div>

We have a detailed troubleshooting guide at:

> [@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…

Recommend you have a read through it.

---

<div class="post-metadata">

### Author: ![tom\_Elon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_elon/32/496724_2.png) [@tom\_Elon](https://meta.discourse.org/u/tom_Elon)
#### Post date: [April 3, 2025, 6:10am UTC](https://meta.discourse.org/t/when-i-use-email-timeout/360031/5 "2025-04-03T06:10:29Z")

</div>

Thank you, I fixed it, because the email server provider website shows the port is 465, but it actually 587!!! oh my god
