Setting up/replicating Docker Mailserver

I’m cured running Docker Mailserver:

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’ve seen simple-nixos-mailserver / nixos-mailserver · GitLab which sounds like exactly what you’re looking for.

1 Like

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.