# Configure QQ Mail sending, email arrives normally, but Discourse reports errors and sends duplicates

**URL:** https://meta.discourse.org/t/qq-discourse/392616
**Category:** Self-hosting
**Created:** [January 3, 2026, 1:24pm UTC](https://meta.discourse.org/t/qq-discourse/392616 "2026-01-03T13:24:48Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![qi\_lu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qi_lu/32/536755_2.png) [@qi\_lu](https://meta.discourse.org/u/qi_lu)
#### Post date: [January 3, 2026, 1:24pm UTC](https://meta.discourse.org/t/qq-discourse/392616/1 "2026-01-03T13:24:48Z")

</div>

# The installation tutorial I initially followed:

> **[零基础部署Discourse开源社区论坛网站，Discourse论坛搭建教程\_哔哩哔哩\_bilibili](https://www.bilibili.com/video/BV1f311BrEdp/?spm_id_from=333.1007.top_right_bar_window_history.content.click&vd_source=d99958caa369a743572b9a7d975950b2)**
>
> Linux+宝塔+Docker+Discourse 零基础快速搭建论坛网站，Discourse是国外最受欢迎的开源论坛程序。--------------------教程文章：https://blog.zeruns.com/archives/919.html演示站：https://bbs.eeclub.top/--------------------雨云优惠注册地址：https://rain.zer, 视频播放量 6437、弹幕量 9、点赞数 31、投硬币枚数 5、收藏人数 63、转发人数 1,...

# My settings:

```plaintext
  DISCOURSE_DEVELOPER_EMAILS: 'xxx@gmail.com'

  ## TODO: Configure the mail server
  ## (used for validation of new accounts, notifications, digests, etc.)
  ## required: hostname of the SMTP mail server used to send mail
  DISCOURSE_SMTP_ADDRESS: smtp.qq.com
  ## uncomment to set the port to something other than the default (25)
  DISCOURSE_SMTP_PORT: 587
  ## USER_NAME / PASSWORD required if the SMTP provider needs authentication
  ## WARNING: a '#' in the SMTP password can be misinterpreted; ensure it's inside string quotes, e.g.:
  ## DISCOURSE_SMTP_PASSWORD: "#pass#ord"
  DISCOURSE_SMTP_USER_NAME: xxx@qq.com
  DISCOURSE_SMTP_PASSWORD: "xxx"
  ## uncomment to enable implicit TLS at connection time, probably needed for using port 465
  #DISCOURSE_SMTP_FORCE_TLS: true
  ## uncomment to set the HELO/EHLO domain, only set if required by provider
  #DISCOURSE_SMTP_DOMAIN: discourse.example.com
  ## the address from which notifications are sent
  DISCOURSE_NOTIFICATION_EMAIL: xxx@qq.com
  ## uncomment to change server certificate verification
  #DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: peer # peer|none
  ## uncomment to override the authentication method
  DISCOURSE_SMTP_AUTHENTICATION: login # plain|login|cram_md5

```

# Situation 1:

When trying user registration, Discourse repeatedly sends emails.

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/1/7/b1767c8218a9428c1e146b2eb8027fc15f0a2843.jpeg)  
I had to manually terminate the retry job in sidekiq.

# Situation 2:

I tried using the internal test email.  
An error prompt appears after clicking send.  
However, when I check my mailbox, the email successfully arrived.

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/b/c/7bc8426d3d357f681130f632feb484024dc4d377.png)

If someone can help me solve this puzzle, I will continue to use QQ Mail, otherwise I will have to try changing the email provider.

---

_[View the full topic](https://meta.discourse.org/t/qq-discourse/392616)._
