this post was submitted on 25 Jan 2026
11 points (100.0% liked)
PieFed help
2134 readers
1 users here now
It's seems right that we should have a local community to help us all with PieFed
Rules
Be kind! We're all learning
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Try this:
set the FLASK_DEBUG environment variable to 1 and then restart your systemd services / docker containers.
Then go to
https://your-instance.tld/test_email?email=your-email%40whatever.comIf it fails is there anything interesting in the logs?
Try removing the
MAIL_USE_TLS=Truefrom your .env file. Often SMTP providers will let you use two ports, one of them for TLS and one without. You'll need to try both ports, with MAIL_USE_TLS on and off to eliminate all possibilities.Thank you, I tried this from my Docker version of the instance, mail seems to be sent as normal through that...I just need to figure out why it's happening with the non-Docker version, so I'll have to test that and check the logs once I get a chance. It's probably something in the "hard way" configuration that I didn't get right along the way!
If you are trying to run things on a VPS, many hosting companies will block the standard email ports by default to prevent spammers from using their network. Usually you have to go through some extra steps to open up those ports.
Some smtp services will allow you to use a nonstandard port. I use
resend.comto send smtp emails, and this is what my PieFed environment variables look like:Ah, my configuration looks very similar, the only difference is that I'm using Mailgun 😁 I am self-hosting and our IP does allow HTTP/HTTPS, but not SMTP for obvious reasons!