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 😅

  • SalamanderOPA
    link
    42 years ago

    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:

    lemmy_1           | 2022-03-24T18:36:31.741763Z ERROR Websocket Request{trace_id=00000000000000000000000000000000}: lemmy_websocket::handlers: Error during message handling email_send_failed: Connection error: Address family not supported by protocol (os error 97)
    lemmy_1           |    0: lemmy_websocket::handlers::Websocket Request
    lemmy_1           |            with trace_id=00000000000000000000000000000000
    lemmy_1           |              at crates/websocket/src/handlers.rs:68
    
    

    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.