modules: some refactoring #85

Merged
rouven0 merged 7 commits from refactoring into main 2024-03-14 18:52:14 +01:00
2 changed files with 10 additions and 7 deletions
Showing only changes of commit 7023c328d9 - Show all commits

View file

@ -40,6 +40,15 @@
superUserGroup = "cn=admins,ou=groups,dc=ifsr,dc=de"; superUserGroup = "cn=admins,ou=groups,dc=ifsr,dc=de";
}; };
}; };
services.postfix = {
relayDomains = [ "hash:/var/lib/mailman/data/postfix_domains" ];
config = {
mailbox_transport = "lmtp:unix:/run/dovecot2/dovecot-lmtp";
transport_maps = [ "hash:/var/lib/mailman/data/postfix_lmtp" ];
virtual_alias_maps = [ "hash:/var/lib/mailman/data/postfix_vmap" ];
local_recipient_maps = [ "hash:/var/lib/mailman/data/postfix_lmtp" ];
};
};
services.postgresql = { services.postgresql = {
enable = true; enable = true;
ensureUsers = [ ensureUsers = [

View file

@ -37,7 +37,6 @@ in
fugidev commented 2024-03-12 22:45:48 +01:00 (Migrated from github.com)
Review

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately
fugidev commented 2024-03-12 22:45:48 +01:00 (Migrated from github.com)
Review

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately
networksStyle = "host"; # localhost and own public IP networksStyle = "host"; # localhost and own public IP
sslCert = "/var/lib/acme/${hostname}/fullchain.pem"; sslCert = "/var/lib/acme/${hostname}/fullchain.pem";
sslKey = "/var/lib/acme/${hostname}/key.pem"; sslKey = "/var/lib/acme/${hostname}/key.pem";
relayDomains = [ "hash:/var/lib/mailman/data/postfix_domains" ];
fugidev commented 2024-03-12 22:45:48 +01:00 (Migrated from github.com)
Review

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately
config = { config = {
home_mailbox = "Maildir/"; home_mailbox = "Maildir/";
# 25 MiB # 25 MiB
@ -94,12 +93,7 @@ in
fugidev commented 2024-03-12 22:45:48 +01:00 (Migrated from github.com)
Review

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately
fugidev commented 2024-03-12 22:45:48 +01:00 (Migrated from github.com)
Review

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately
smtpd_sasl_auth_enable = true; smtpd_sasl_auth_enable = true;
smtpd_sasl_path = "/var/lib/postfix/auth"; smtpd_sasl_path = "/var/lib/postfix/auth";
smtpd_sasl_type = "dovecot"; smtpd_sasl_type = "dovecot";
#mailman stuff local_recipient_maps = [ "ldap:${config.sops.secrets."postfix_ldap_aliases".path}" "$alias_maps" ];
fugidev commented 2024-03-12 22:45:48 +01:00 (Migrated from github.com)
Review

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately
fugidev commented 2024-03-12 22:45:48 +01:00 (Migrated from github.com)
Review

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately
mailbox_transport = "lmtp:unix:/run/dovecot2/dovecot-lmtp";
fugidev commented 2024-03-12 22:45:48 +01:00 (Migrated from github.com)
Review

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately
fugidev commented 2024-03-12 22:45:48 +01:00 (Migrated from github.com)
Review

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately
transport_maps = [ "hash:/var/lib/mailman/data/postfix_lmtp" ];
fugidev commented 2024-03-12 22:45:48 +01:00 (Migrated from github.com)
Review

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately
virtual_alias_maps = [ "hash:/var/lib/mailman/data/postfix_vmap" ];
fugidev commented 2024-03-12 22:45:48 +01:00 (Migrated from github.com)
Review

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately
local_recipient_maps = [ "hash:/var/lib/mailman/data/postfix_lmtp" "ldap:${config.sops.secrets."postfix_ldap_aliases".path}" "$alias_maps" ];
fugidev commented 2024-03-12 22:45:48 +01:00 (Migrated from github.com)
Review

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately
}; };
}; };
}; };

fugidev commented 2024-03-12 22:45:48 +01:00 (Migrated from github.com)
Review

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately
fugidev commented 2024-03-12 22:45:48 +01:00 (Migrated from github.com)
Review

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately

maybe would be nice to move mailman specific postfix config to mailman.nix, so they could be enabled separately