The setup is super imperative and I would like to change this.
Does someone maybe have an example where the configs live more in Nix or even replicated the setup fully in Nix?
I know of the Simple Mailserver but as of know they don’t support relays and I don’t want to run my server from my dynamic residential IP.
I think that’s the one which doesn’t support the SMTP relay (at least when I checked it out the last time).
I couldn’t find the related issue on Gitlab.
I resolved the issue. Seems like swaks cannot use TLS properly in a nix shell. I tested this now with the msmtp configuration from the nixos.wiki and it works.