# Ik heb items geconfigureerd met betrekking tot de SMTP-service in het app.yml-configuratiebestand, maar ik kan de activeringsmail nog steeds niet correct ontvangen

**URL:** https://meta.discourse.org/t/i-have-configured-items-related-to-smtp-service-in-the-app-yml-configuration-file-but-i-still-cannot-receive-the-activation-email-correctly/201514
**Category:** General
**Created:** [24 augustus 2021 om 07:33 UTC](https://meta.discourse.org/t/i-have-configured-items-related-to-smtp-service-in-the-app-yml-configuration-file-but-i-still-cannot-receive-the-activation-email-correctly/201514 "2021-08-24T07:33:39Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![liuyang](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@liuyang](https://meta.discourse.org/u/liuyang)
#### Post date: [24 augustus 2021 om 07:33 UTC](https://meta.discourse.org/t/i-have-configured-items-related-to-smtp-service-in-the-app-yml-configuration-file-but-i-still-cannot-receive-the-activation-email-correctly/201514/1 "2021-08-24T07:33:39Z")

</div>

I have configured items related to SMTP service in the app.yml configuration file, but I still cannot receive the activation email correctly. Please provide some support.  
Here are the logs I collected:  
Rendered layouts/email\_template.html.erb (Duration: 0.1ms | Allocations: 30)  
Delivered mail [ee2b5a91-0590-48f7-8c75-aa67d5e0d6dc@bbs.lynkage.cn](mailto:ee2b5a91-0590-48f7-8c75-aa67d5e0d6dc@bbs.lynkage.cn) (30001.9ms)  
Job exception: execution expired

---

<div class="post-metadata">

### Author: ![misaka4e21](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@misaka4e21](https://meta.discourse.org/u/misaka4e21)
#### Post date: [24 augustus 2021 om 08:06 UTC](https://meta.discourse.org/t/i-have-configured-items-related-to-smtp-service-in-the-app-yml-configuration-file-but-i-still-cannot-receive-the-activation-email-correctly/201514/2 "2021-08-24T08:06:29Z")

</div>

Could it be that notification email is not set correctly in /admin/site\_settings/category/required?  
Is the “Sending Method” configuration in /admin/email displayed correctly?

(Just guessing

Wait, your domain doesn’t even have an MX record…)

---

<div class="post-metadata">

### Author: ![liuyang](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@liuyang](https://meta.discourse.org/u/liuyang)
#### Post date: [24 augustus 2021 om 08:10 UTC](https://meta.discourse.org/t/i-have-configured-items-related-to-smtp-service-in-the-app-yml-configuration-file-but-i-still-cannot-receive-the-activation-email-correctly/201514/3 "2021-08-24T08:10:19Z")

</div>

The problem must be in the docker configuration, because I have other services that can normally use my CMTP server to send emails. I don’t know where the /admin/site\_settings/category/required you mentioned is, and I can’t find it.

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [24 augustus 2021 om 08:27 UTC](https://meta.discourse.org/t/i-have-configured-items-related-to-smtp-service-in-the-app-yml-configuration-file-but-i-still-cannot-receive-the-activation-email-correctly/201514/4 "2021-08-24T08:27:24Z")

</div>

Hello @liuyang,

Sorry to ask but can you please ask your question in English so the whole community can understand and help if they can?

Thanks! 😉

---

<div class="post-metadata">

### Author: ![misaka4e21](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@misaka4e21](https://meta.discourse.org/u/misaka4e21)
#### Post date: [24 augustus 2021 om 08:50 UTC](https://meta.discourse.org/t/i-have-configured-items-related-to-smtp-service-in-the-app-yml-configuration-file-but-i-still-cannot-receive-the-activation-email-correctly/201514/5 "2021-08-24T08:50:16Z")

</div>

http(s)://your\_domain/admin/site\_settings/category/required

http(s)://your\_domain/admin/email

---

<div class="post-metadata">

### Author: ![liuyang](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@liuyang](https://meta.discourse.org/u/liuyang)
#### Post date: [24 augustus 2021 om 09:05 UTC](https://meta.discourse.org/t/i-have-configured-items-related-to-smtp-service-in-the-app-yml-configuration-file-but-i-still-cannot-receive-the-activation-email-correctly/201514/6 "2021-08-24T09:05:50Z")

</div>

> [@misaka4e21](#):
>
> admin/email

I am now unable to successfully log in to the forum as an administrator because I cannot receive an activation email when CREATING an administrator account

---

<div class="post-metadata">

### Author: ![misaka4e21](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@misaka4e21](https://meta.discourse.org/u/misaka4e21)
#### Post date: [24 augustus 2021 om 09:20 UTC](https://meta.discourse.org/t/i-have-configured-items-related-to-smtp-service-in-the-app-yml-configuration-file-but-i-still-cannot-receive-the-activation-email-correctly/201514/7 "2021-08-24T09:20:39Z")

</div>

emmm

You could try creating an admin by

```bash
cd /var/discourse
./launcher enter app

## in the container
rake admin:create

```

---

<div class="post-metadata">

### Author: ![liuyang](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@liuyang](https://meta.discourse.org/u/liuyang)
#### Post date: [24 augustus 2021 om 12:01 UTC](https://meta.discourse.org/t/i-have-configured-items-related-to-smtp-service-in-the-app-yml-configuration-file-but-i-still-cannot-receive-the-activation-email-correctly/201514/8 "2021-08-24T12:01:37Z")

</div>

Thanks for your help. Now I have successfully activated my administrator account through the command line, but I still cannot send emails through SMTP. I have successfully sent test emails through Telnet on the server, so I think there are some configuration items in app.yml that I am not clear about, which causes my problems

```plaintext
  DISCOURSE_SMTP_ADDRESS: smtp.qq.com
  DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_USER_NAME: 1111111111111111111111111111111111@qq.com
  DISCOURSE_SMTP_PASSWORD: qq smtp login Authorization code
  DISCOURSE_SMTP_AUTHENTICATION: login
  DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
  DISCOURSE_SMTP_ENABLE_START_TLS: true

```

---

<div class="post-metadata">

### Author: ![misaka4e21](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@misaka4e21](https://meta.discourse.org/u/misaka4e21)
#### Post date: [24 augustus 2021 om 14:45 UTC](https://meta.discourse.org/t/i-have-configured-items-related-to-smtp-service-in-the-app-yml-configuration-file-but-i-still-cannot-receive-the-activation-email-correctly/201514/9 "2021-08-24T14:45:25Z")

</div>

Did you set `DISCOURSE_NOTIFICATION_EMAIL` in your `app.yml` or “notification email” in site settings?

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/5/e5beb1cd5c4d12a954fe298503de494430682ec9.png)

---

<div class="post-metadata">

### Author: ![liuyang](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@liuyang](https://meta.discourse.org/u/liuyang)
#### Post date: [24 augustus 2021 om 15:26 UTC](https://meta.discourse.org/t/i-have-configured-items-related-to-smtp-service-in-the-app-yml-configuration-file-but-i-still-cannot-receive-the-activation-email-correctly/201514/10 "2021-08-24T15:26:38Z")

</div>

Thank you very much. With your help, I successfully solved the problem 👍
