Sistema de e-mail não funciona, embora eu o tenha testado com telnet e outras plataformas

For some reason, I am not getting a mail from my discourse setup.

I already tested my SMTP settings and they are working for other platforms

Also tested it with Telnet.

1 curtida

See Troubleshooting email on a new Discourse install.

A common problem is that Discourse is sending from an address that your server will not accept.

4 curtidas

I am in a similar situation. Installed, website responds, registration e-mail never gets there. Tested sending e-mail from the discourse server, from inside the app container using the same configuration/credentials => works, test message sent and received correctly. Running doctor gives me:

Sending mail to my_correct_user@my_correct_domain. . . 
Testing sending to my_correct_user@my_correct_domain using correct_smtp_server_name:465, username:correct_smpt_user@correct_sender_domain with plain auth.
======================================== ERROR ========================================
                                    UNEXPECTED ERROR

Net::ReadTimeout

====================================== SOLUTION =======================================
This is not a common error. No recommended solution exists!
[....]

I tried switching port to 587, then the Net::ReadTimeout doesn’t show in the logs but still nothing gets sent. What next? What is the correct content of DISCOURSE_SMTP_DOMAIN ? That’s the only thing I am still suspicious about.

same issue here. Please help

If you’re getting a read timeout it’s because the outgoing smtp port is blocked. You’ll need to get it unblocked or use another port.

1 curtida

Eu pessoalmente uso a porta submission nesse servidor para que uma delas certamente não seja bloqueada. E - certo - ao usar 587 o erro de tempo limite não aparece. Como não tenho como fazer alterações na configuração do servidor, devo entender que apenas SMTPS é suportado?

A porta 587 tem TLS explícito (STARTTLS) e um servidor de e-mail poderia ser configurado para aceitar envios nessa porta sem exigir TLS, então você poderia fazer SMTP não criptografado por essa porta.

(A porta 465, agora um tanto obsoleta, tinha TLS implícito e você não tinha escolha ali).

Certo, o servidor está configurado para funcionar com TLS explícito na porta de envio (587). Agora, o que é preciso fazer na configuração do Discourse para fazê-lo funcionar na porta 587 com TLS? Deveria/não deveria funcionar OOB?

Existe DISCOURSE_SMTP_ENABLE_START_TLS que é true por padrão.