1
0
Fork 0

Install mailman

This commit is contained in:
Malte Brandy 2021-06-06 01:18:57 +02:00
parent e53b8ede89
commit e84ac26208
2 changed files with 33 additions and 0 deletions

View file

@ -25,6 +25,7 @@ in
../../roles/laminar
../../roles/kassandra-server.nix
../../roles/foundryvtt.nix
../../roles/mailman.nix
../../roles/home-assistant
./web.nix
./mail.nix

32
nixos/roles/mailman.nix Normal file
View file

@ -0,0 +1,32 @@
{ ... }:
let
hostname = "lists.maralorn.de";
admin = "admin@maralorn.de";
in
{
services = {
mailman = {
enable = true;
webHosts = [ hostname ];
serve.enable = true;
enablePostfix = true;
siteOwner = admin;
};
postfix = {
relayDomains = [ "hash:/var/lib/mailman/data/postfix_domains" ];
config =
let
lmtp = [ "hash:/var/lib/mailman/data/postfix_lmtp" ];
in
{
transport_maps = lmtp;
local_recipient_maps = lmtp;
};
};
nginx.virtualHosts.${hostname} = {
enableACME = true;
forceSSL = true;
};
};
}