Hello!
I have procrastinated configuring the e-mail server for my instance. I am looking into it and it is not entirely clear to me how I should go about it.
I see that some docker-compose files have the following block added:
postfix:
image: mwader/postfix-relay
environment:
- POSTFIX_myhostname=${domain}
restart: "always"
But I don’t understand whether this is supposed to work out-of-the box (which it did not for me when I tried), or if I need to set up the postfix server as one usually would and the postfix-relay somehow makes the connection between docker container and the already configured server. Is there a guide for complete beginners? I could not find one in the lemmy docs and I have never configured an e-mail server before. I am reading through the postfix documentation and already got some basics but there is a lot, and I am not sure that I am moving efficiently towards the end goal 😅
Support / questions about Lemmy.
Yes that image takes full care of email sending, you just have to add it to the Lemmy config. Explanation is on Docker Hub. One thing you should do for email sending is set proper reverse DNS (which reminds me, it might not be set for lemmy.ml either).
Thank you! That is helpful. I have made progress. Now I get a message saying “email_send_failed” and an “Address family not supported by protocol” error from the lemmy logs:
I think that this error is related to trying to use an ipv6 address at some point, and my server only has ipv4. I will try to fix this… But at least I am moving forward! I will figure out how to set up the reverse DNS after.