this post was submitted on 25 Jan 2026
12 points (100.0% liked)

PieFed Meta

2200 readers
3 users here now

Discuss PieFed project direction, provide feedback, ask questions, suggest improvements, and engage in conversations related to the platform organization, policies, features, and community dynamics.

Wiki

founded 2 years ago
MODERATORS
 

As the topic would suggest I've run into another problem with PieFed...I have Mailgun set up as my SMTP host for password resets and the like, the password to my knowledge is correct as I've tested the configuration out in a separate Python script and it logged into smtp.mailgun.org successfully on port 587.

Has anyone else set up Mailgun or similar external SMTP hosting that may be able to help debug the issue?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] wjs018@piefed.wjs018.xyz 4 points 2 days ago (1 children)

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.com to send smtp emails, and this is what my PieFed environment variables look like:

MAIL_USE_TLS=True
MAIL_SERVER='smtp.resend.com'
MAIL_PORT=2587
MAIL_USERNAME='resend'
MAIL_PASSWORD='my_api_key'
MAIL_FROM='my_from_email@instance.tld'
[โ€“] Phoenix1@piefed.social 1 points 2 days ago

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!