Configurando o envio de e-mail do QQ Mail, o e-mail chega normalmente, mas o Discourse relata erro e envia repetidamente

O tutorial de instalação que segui inicialmente:

Minhas configurações:

  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

Cenário 1:

Ao tentar registrar um usuário, o Discourse envia e-mails repetidamente.


Tive que encerrar manualmente as tarefas de repetição no sidekiq.

Cenário 2:

Tentei usar o e-mail de teste interno.
Após clicar em enviar, aparece um erro.
No entanto, ao abrir a caixa de entrada do e-mail, percebo que a mensagem chegou com sucesso.

Se alguém puder me ajudar a resolver este problema, continuarei usando o QQ Mail, caso contrário, terei que tentar trocar de provedor de e-mail.

Existem erros em seuforum.com/logs?

Seu problema me lembra de 我搭建了discourse,激活了账户邮箱,为什么还是每隔一会儿不断发送激活账户信息的邮件??怎么配置解决这个bug - #23 by supermathie e Duplicate registration email issue

1 curtida

Obrigado pela resposta. Os dois exemplos que você forneceu são quase idênticos à minha situação, e eu revisei cuidadosamente o conteúdo relevante, mas ainda não consigo descobrir como resolver.

Os logs realmente contêm erros.


olá, desculpe por isso. Estou trabalhando para corrigir isso e fornecer mensagens de erro reais. Responderei aqui quando for mesclado.

1 curtida