# Discourse-doctor start geen verbinding met smtp server

**URL:** https://meta.discourse.org/t/discourse-doctor-does-not-initiate-connection-towards-smtp-server/336504
**Category:** Self-hosting
**Tags:** email
**Created:** [16 november 2024 om 15:16 UTC](https://meta.discourse.org/t/discourse-doctor-does-not-initiate-connection-towards-smtp-server/336504 "2024-11-16T15:16:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![laplasz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/laplasz/32/221485_2.png) [@laplasz](https://meta.discourse.org/u/laplasz)
#### Post date: [16 november 2024 om 15:16 UTC](https://meta.discourse.org/t/discourse-doctor-does-not-initiate-connection-towards-smtp-server/336504/1 "2024-11-16T15:16:54Z")

</div>

Hi There!

So the website can send out emails using the configured smtp server. However the discourse-doctor does not.  
So how can I debug the `rake 'emails:test[user@domain.my]'` command.  
I would like to see that there are packets going towards the address which was configured with `SMTP_ADDRESS` and `SMTP_PORT`

right now using tcpdump there is no any packet going out towards that address.

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: [16 november 2024 om 19:29 UTC](https://meta.discourse.org/t/discourse-doctor-does-not-initiate-connection-towards-smtp-server/336504/2 "2024-11-16T19:29:38Z")

</div>

If you want to debug your smtp then see [Troubleshoot email on a new Discourse install - #547 by Nikolai\_Patrushev](https://meta.discourse.org/t/troubleshoot-email-on-a-new-discourse-install/16326/547) or perhaps [Troubleshooting Outgoing Email](https://meta.discourse.org/t/troubleshooting-outgoing-email/271484). Discourse-setup isn’t really the best way.

Just run the rake task yourself, then edit the yml and destroy and start the container then exit and try again.

---

<div class="post-metadata">

### Author: ![laplasz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/laplasz/32/221485_2.png) [@laplasz](https://meta.discourse.org/u/laplasz)
#### Post date: [16 november 2024 om 19:40 UTC](https://meta.discourse.org/t/discourse-doctor-does-not-initiate-connection-towards-smtp-server/336504/3 "2024-11-16T19:40:25Z")

</div>

so again - the troubleshooting tool itself seems to not working - that is why I am asking how to debug emails:test task - for example see debug printouts during execution - there is a tool `rdebug` and the command would be `ruby-debug rake my:task`  
is there something similar available in the app image?  
Thanks

---

<div class="post-metadata">

### Author: ![Nikolai\_Patrushev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nikolai_patrushev/32/459342_2.png) [@Nikolai\_Patrushev](https://meta.discourse.org/u/Nikolai_Patrushev)
#### Post date: [19 november 2024 om 18:47 UTC](https://meta.discourse.org/t/discourse-doctor-does-not-initiate-connection-towards-smtp-server/336504/4 "2024-11-19T18:47:59Z")

</div>

As always verbosity kills motivatio.  
No for real as far as i remember , there was missing value in yml file.  
I still amazed how some developers dont track all possible valid yml options
