Install mailman
This commit is contained in:
parent
e53b8ede89
commit
e84ac26208
|
@ -25,6 +25,7 @@ in
|
||||||
../../roles/laminar
|
../../roles/laminar
|
||||||
../../roles/kassandra-server.nix
|
../../roles/kassandra-server.nix
|
||||||
../../roles/foundryvtt.nix
|
../../roles/foundryvtt.nix
|
||||||
|
../../roles/mailman.nix
|
||||||
../../roles/home-assistant
|
../../roles/home-assistant
|
||||||
./web.nix
|
./web.nix
|
||||||
./mail.nix
|
./mail.nix
|
||||||
|
|
32
nixos/roles/mailman.nix
Normal file
32
nixos/roles/mailman.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue