I have set up a new Lemmy server with lemmy-ansible. After a few days, I realized emails are not working. It turns out my server provider had the SMTP port blocked. So I have reconfigured emails with an external SMTP server in config.hjson
and verified that works by resetting the password. The problem is what to do with those failed emails.
Previously, emails were sent by postfix-relay. When I checked the logs, there were items in the queue, but they were gone after I changed the POSTFIX_*
environment variables and restarted the Docker container.
As far as I know, the impact is a few users could not log in because their emails are not verified. What should you do in such a case? I can think of a few potential solutions, but since I’m not familiar with the source code, I can’t judge which one is the best way to go for now.
- Find some way to resend failed emails with postfix-relay, and follow the normal path
- Ignore failed emails, find some way to re-trigger email verifications, so users can get new emails
- Ignore failed emails, connect to the database, and fix relevant data manually
- Something else?
That’s correct. The applications won’t show up there until the email is verified (if verification is enabled). I guess it’s a deliberate choice by the devs as a spam prevention method.