A user reports issues with configuring QQ Mail for sending emails in Discourse, where emails are successfully delivered but Discourse repeatedly sends them and shows errors. The user’s configuration includes SMTP settings for smtp.qq.com with port 587, and the problem occurs during user registration and test emails. Logs show an SMTP Error Net::SMTPUnknownError with unclear messages. The user shares error logs and a doctor report, and others confirm similar issues with QQ Mail, suggesting it’s a known problem. A developer acknowledges the issue and notes a fix has been merged to improve error messages. Another user confirms that using Mailgun resolves the issue, and a developer notes that QQ Mail is a recurring source of problems. The consensus is that the issue is likely due to QQ Mail’s behavior rather than Discourse configuration.
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