aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-01-10 00:01:45 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-01-10 00:01:45 +0100
commit619e4f46adc15e409122c4e0fa0e0a0b811bb32f (patch)
tree20f29e51aec4bcb1176b5d19b8d1f8358268b7ba /modules/private/websites
parentfd2af8fa50dc1a60d40a1aa3c4252d8eb3abf5b0 (diff)
downloadNix-619e4f46adc15e409122c4e0fa0e0a0b811bb32f.tar.gz
Nix-619e4f46adc15e409122c4e0fa0e0a0b811bb32f.tar.zst
Nix-619e4f46adc15e409122c4e0fa0e0a0b811bb32f.zip
Add backup MX
Diffstat (limited to 'modules/private/websites')
-rw-r--r--modules/private/websites/tools/git/mantisbt.nix2
-rw-r--r--modules/private/websites/tools/mail/mta-sts.nix6
2 files changed, 5 insertions, 3 deletions
diff --git a/modules/private/websites/tools/git/mantisbt.nix b/modules/private/websites/tools/git/mantisbt.nix
index d0d7a98..8606819 100644
--- a/modules/private/websites/tools/git/mantisbt.nix
+++ b/modules/private/websites/tools/git/mantisbt.nix
@@ -31,7 +31,7 @@ rec {
31 $g_from_email = 'mantisbt@tools.immae.eu'; 31 $g_from_email = 'mantisbt@tools.immae.eu';
32 $g_return_path_email = 'mantisbt@tools.immae.eu'; 32 $g_return_path_email = 'mantisbt@tools.immae.eu';
33 $g_from_name = 'Mantis Bug Tracker at git.immae.eu'; 33 $g_from_name = 'Mantis Bug Tracker at git.immae.eu';
34 $g_email_receive_own = OFF; 34 $g_email_receive_own = ON;
35 # --- LDAP --- 35 # --- LDAP ---
36 $g_login_method = LDAP; 36 $g_login_method = LDAP;
37 $g_ldap_protocol_version = 3; 37 $g_ldap_protocol_version = 3;
diff --git a/modules/private/websites/tools/mail/mta-sts.nix b/modules/private/websites/tools/mail/mta-sts.nix
index a401b41..ed3fce8 100644
--- a/modules/private/websites/tools/mail/mta-sts.nix
+++ b/modules/private/websites/tools/mail/mta-sts.nix
@@ -13,13 +13,15 @@ let
13 ) 13 )
14 config.myEnv.dns.masterZones 14 config.myEnv.dns.masterZones
15 ))); 15 )));
16 mxes = lib.mapAttrsToList
17 (n: v: v.mx.subdomain)
18 (lib.attrsets.filterAttrs (n: v: v.mx.enable) config.myEnv.servers);
16 # FIXME: increase the id number in modules/private/dns.nix when this 19 # FIXME: increase the id number in modules/private/dns.nix when this
17 # file change (date -u +'%Y%m%d%H%M%S'Z) 20 # file change (date -u +'%Y%m%d%H%M%S'Z)
18 file = domain: pkgs.writeText "mta-sts-${domain.domain}.txt" '' 21 file = domain: pkgs.writeText "mta-sts-${domain.domain}.txt" ''
19 version: STSv1 22 version: STSv1
20 mode: testing 23 mode: testing
21 mx: mx-1.${domain.mail} 24 ${builtins.concatStringsSep "\n" (map (v: "mx: ${v}.${domain.mail}") mxes)}
22 mx: mx-2.${domain.mail}
23 max_age: 604800 25 max_age: 604800
24 ''; 26 '';
25 root = pkgs.runCommand "mta-sts_root" {} '' 27 root = pkgs.runCommand "mta-sts_root" {} ''