Unexpected errror in rake emails:test

AI-generated summary

The user jardi reports an unexpected error when running rake emails:test while testing email functionality for a self-hosted Discourse instance using Riseup.net. Despite successful DNS resolution and SSL connection to mail.riseup.net, the test fails with a garbled error message. tobias eigen responds, noting the topic received no replies and asks if jardi resolved the issue, suggesting they share the solution if found.

Hello!

I’m testing how to run a self-hosted instance using my email in riseup.net, but I’m not receiving the mails.

The dns resolution of mail.riseup.net its working properly

root@discourse-app:/etc# getent hosts mail.riseup.net
198.252.153.170 mail.riseup.net
198.252.153.171 mail.riseup.net

and openssl s_client -connect mail.riseup.net:465successfuly connects to the server.

I’ve run rake emails:test[]with this result

root@discourse-app:/etc# rake emails:test[****@****.**]
Testing sending to ****@****.** using mail.riseup.net:465, username:****@riseup.net with plain auth.
======================================== ERROR ========================================
                                    UNEXPECTED ERROR

Net::ReadTimeout

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

Please report the exact error message above to https://meta.discourse.org/
(And a solution, if you find one!)
=======================================================================================

I’ve also tried to rewrite the notifications email with rails r “SiteSetting.notification_email = ‘****@riseup.net’” with the same result in rake emails:test[].

What could be the problem?

Looks like your topic didn’t find any takers. Were you able to figure it out the source of the issue on your own? If so, please share the solution for future travelers!

Cool that you’re usin riseup. I haven’t seen that name in a long time.