initial mailman config

This commit is contained in:
Rouven Seifert 2023-04-04 00:04:04 +02:00
parent b9c58f5363
commit d1fb1b3de1
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 18 additions and 1 deletions

View file

@ -69,6 +69,8 @@
./modules/ldap.nix
# ./modules/keycloak.nix replaced by portunus
./modules/nginx.nix
./modules/mail.nix
./modules/mailman.nix
./modules/hedgedoc.nix
./modules/wiki.nix
./modules/stream.nix

View file

@ -41,6 +41,8 @@ in
networks = [ "127.0.0.1" "141.30.30.169" ];
sslCert = "/var/lib/acme/${hostname}/fullchain.pem";
sslKey = "/var/lib/acme/${hostname}/key.pem";
relayDomains = [ "hash:/var/lib/mailman/data/postfix_domains" ];
extraAliases = ''
# Taken from kaki, maybe we can throw out some at some point
# General redirections for pseudo accounts
@ -99,7 +101,9 @@ in
smtpd_sasl_auth_enable = true;
smtpd_sasl_path = "/var/lib/postfix/auth";
smtpd_sasl_type = "dovecot";
# virtual_mailbox_base = "/var/mail";
#mailman stuff
transport_maps = [ "hash:/var/lib/mailman/data/postfix_lmtp" ];
local_recipient_maps = [ "hash:/var/lib/mailman/data/postfix_lmtp" ];
};
};
dovecot2 = {

11
modules/mailman.nix Normal file
View file

@ -0,0 +1,11 @@
{ config, ... }:
{
services.mailman = {
enable = true;
serve.enable = true;
webHosts = [ "lists.${config.fsr.domain}" ];
hyperkitty.enable = true;
enablePostfix = true;
siteOwner = "root@${config.fsr.domain}";
};
}