# Mail subdomain problem

**URL:** https://meta.discourse.org/t/mail-subdomain-problem/228483
**Category:** Self-hosting
**Created:** [May 30, 2022, 9:44pm UTC](https://meta.discourse.org/t/mail-subdomain-problem/228483 "2022-05-30T21:44:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rodseb](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@rodseb](https://meta.discourse.org/u/rodseb)
#### Post date: [May 30, 2022, 9:44pm UTC](https://meta.discourse.org/t/mail-subdomain-problem/228483/1 "2022-05-30T21:44:05Z")

</div>

Hello,  
I have a weird problem, I have done the commands and modifications, but I still have this error.

> [@Troubleshoot email on a new Discourse install](https://meta.discourse.org/t/troubleshooting-email-on-a-new-discourse-install/16326#is-the-email-domain-correct-7):
>
> 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…

```plaintext
  ## TODO: The SMTP mail server used to validate new accounts and send notifications
  # SMTP ADDRESS, username, and password are required
  # WARNING the char '#' in SMTP password can cause problems!
  DISCOURSE_SMTP_ADDRESS: mail.spm-corp.fr
  DISCOURSE_SMTP_PORT: 465
  DISCOURSE_SMTP_USER_NAME: XXXX@spm-corp.fr
  DISCOURSE_SMTP_PASSWORD: "XXXXXXXXXXXX"
  #DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
  DISCOURSE_SMTP_DOMAIN: spm-corp.fr

  DISCOURSE_NOTIFICATION_EMAIL: XXXX@spm-corp.fr

```

I edited and ran the command

```plaintext
rails r "SiteSetting.notification_email ......

```

nothing wants to work  
I always have this error

```plaintext
  Rendered layouts/email_template.html.erb (Duration: 0.3ms | Allocations: 34)
Delivered mail 87e79779-6693-4fa2-b5f3-3647b6e19768@forums.spm-corp.fr (5043.4ms)
Job exception: Net::ReadTimeout

```

the Discourse link is [forums.spm-corp.fr](http://forums.spm-corp.fr)  
I have no communication problem between the mail server and Discourse  
I even reset the Discourse folder and that of discourse\_docker

Thank you for your help

I’m sorry if this topic has already been discussed.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [May 31, 2022, 12:29am UTC](https://meta.discourse.org/t/mail-subdomain-problem/228483/2 "2022-05-31T00:29:13Z")

</div>

Have you modified the error message to show [discourse.example.com](http://discourse.example.com), or is that the domain specified on your site?

---

<div class="post-metadata">

### Author: ![rodseb](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@rodseb](https://meta.discourse.org/u/rodseb)
#### Post date: [May 31, 2022, 2:07am UTC](https://meta.discourse.org/t/mail-subdomain-problem/228483/4 "2022-05-31T02:07:29Z")

</div>

I put [discourse.example.com](http://discourse.example.com) to camouflage the domain, but yes it is a personal domain

I edited to make it more comprehensive

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2022, 12:47pm UTC](https://meta.discourse.org/t/mail-subdomain-problem/228483/5 "2022-06-08T12:47:50Z")

</div>

I spotted that this topic had been marked as solved, but it doesn’t appear to contain a solution. Did you get everything sorted in the end @rodseb?

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [January 29, 2023, 10:04pm UTC](https://meta.discourse.org/t/mail-subdomain-problem/228483/6 "2023-01-29T22:04:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
