Instance keeps returning "no_email_setup" error

https://lemmy.world/post/134554

Instance keeps returning "no_email_setup" error - Lemmy.world

Hopefully this is the last time I need to bug you guys here about stuff. :) I added a postfix relay to my Lemmy instance and configured the email settings in my lemmy.conf file but no matter what I do I keep getting a “no_email_setup” error when I try to test the SMTP server. Is there an obvious step I’m missing? This is the block in docker-compose.yml: postfix: image: mwader/postfix-relay networks: - lemmyinternal - lemmyexternalproxy environment: - POSTFIX_myhostname=myhostname.here - POSTFIX_inet_protocols=ipv4 restart: always And my lemmy.hjson has this block: email: { smtp_server: "postfix:25" smtp_from_address: "Lemmy <[email protected]>" tls_type: "none" }

It looks like email is getting blocked because I need to set up SPF or DKIM. From my postfix logs:

This mail is unauthenticated, which poses a security risk to the 550-5.7.26 sender and Gmail users, and has been blocked. The sender must 550-5.7.26 authenticate with at least one of SPF or DKIM.

Now I'm off to figure that out!