# Problème de sous-domaine mail

**URL:** <https://meta.discourse.org/t/mail-subdomain-problem/228483>\
**Category:** Self-hosting\
**Created:** [Mai 30, 2022, 9:44 UTC](https://meta.discourse.org/t/mail-subdomain-problem/228483 "2022-05-30T21:44:05Z")\
**Posts on this page:** 1\
**Showing post:** 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:** [Mai 30, 2022, 9:44 UTC](https://meta.discourse.org/t/mail-subdomain-problem/228483/1 "2022-05-30T21:44:05Z")

</div>

Bonjour,  
J’ai un problème étrange, j’ai exécuté les commandes et les modifications, mais j’ai toujours cette erreur.

> [@Dépanner les emails sur une nouvelle installation de Discourse](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

```

J’ai modifié et exécuté la commande

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

```

rien ne fonctionne  
J’ai toujours cette erreur

```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

```

Le lien Discourse est [forums.spm-corp.fr](http://forums.spm-corp.fr)  
Je n’ai aucun problème de communication entre le serveur de messagerie et Discourse  
J’ai même réinitialisé le dossier Discourse et celui de discourse\_docker

Merci de votre aide

Je suis désolé si ce sujet a déjà été abordé.

---

_[View the full topic](https://meta.discourse.org/t/mail-subdomain-problem/228483)._
