summaryrefslogtreecommitdiff
path: root/hosts/surtr
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/surtr')
-rw-r--r--hosts/surtr/dns/zones/email.bouncy.soa4
-rw-r--r--hosts/surtr/email/default.nix7
2 files changed, 7 insertions, 4 deletions
diff --git a/hosts/surtr/dns/zones/email.bouncy.soa b/hosts/surtr/dns/zones/email.bouncy.soa
index abf8ef07..3f038b92 100644
--- a/hosts/surtr/dns/zones/email.bouncy.soa
+++ b/hosts/surtr/dns/zones/email.bouncy.soa
@@ -1,7 +1,7 @@
1$ORIGIN bouncy.email. 1$ORIGIN bouncy.email.
2$TTL 3600 2$TTL 3600
3@ IN SOA ns.yggdrasil.li. root.yggdrasil.li. ( 3@ IN SOA ns.yggdrasil.li. root.yggdrasil.li. (
4 2022071002 ; serial 4 2022100600 ; serial
5 10800 ; refresh 5 10800 ; refresh
6 3600 ; retry 6 3600 ; retry
7 604800 ; expire 7 604800 ; expire
@@ -69,7 +69,7 @@ spm IN MX 0 mailin.bouncy.email.
69spm IN TXT "v=spf1 redirect=bouncy.email" 69spm IN TXT "v=spf1 redirect=bouncy.email"
70_acme-challenge.spm IN NS ns.yggdrasil.li. 70_acme-challenge.spm IN NS ns.yggdrasil.li.
71 71
72_mta-sts IN TXT "v=STSv1; id=2022071002" 72_mta-sts IN TXT "v=STSv1; id=2022100600"
73_smtp._tls IN TXT "v=TLSRPTv1; rua=mailto:postmaster@bouncy.email" 73_smtp._tls IN TXT "v=TLSRPTv1; rua=mailto:postmaster@bouncy.email"
74mta-sts IN A 202.61.241.61 74mta-sts IN A 202.61.241.61
75mta-sts IN AAAA 2a03:4000:52:ada:: 75mta-sts IN AAAA 2a03:4000:52:ada::
diff --git a/hosts/surtr/email/default.nix b/hosts/surtr/email/default.nix
index 2fe5b7f0..42b50c88 100644
--- a/hosts/surtr/email/default.nix
+++ b/hosts/surtr/email/default.nix
@@ -412,6 +412,8 @@ in {
412 in '' 412 in ''
413 mail_home = /var/lib/mail/%u 413 mail_home = /var/lib/mail/%u
414 414
415 mail_plugins = $mail_plugins quota
416
415 first_valid_uid = ${toString config.users.users.dovecot2.uid} 417 first_valid_uid = ${toString config.users.users.dovecot2.uid}
416 last_valid_uid = ${toString config.users.users.dovecot2.uid} 418 last_valid_uid = ${toString config.users.users.dovecot2.uid}
417 first_valid_gid = ${toString config.users.groups.dovecot2.gid} 419 first_valid_gid = ${toString config.users.groups.dovecot2.gid}
@@ -473,9 +475,10 @@ in {
473 result_failure = return-fail 475 result_failure = return-fail
474 result_internalfail = return-fail 476 result_internalfail = return-fail
475 } 477 }
478
479 mail_plugins = $mail_plugins sieve
476 } 480 }
477 481
478 mail_plugins = $mail_plugins quota
479 mailbox_list_index = yes 482 mailbox_list_index = yes
480 postmaster_address = postmaster@yggdrasil.li 483 postmaster_address = postmaster@yggdrasil.li
481 recipient_delimiter = 484 recipient_delimiter =
@@ -732,7 +735,7 @@ in {
732 cp ${pkgs.writeText "mta-sts.txt" '' 735 cp ${pkgs.writeText "mta-sts.txt" ''
733 version: STSv1 736 version: STSv1
734 mode: enforce 737 mode: enforce
735 max_age: 604800 738 max_age: 2419200
736 mx: mailin.bouncy.email 739 mx: mailin.bouncy.email
737 ''} $out/.well-known/mta-sts.txt 740 ''} $out/.well-known/mta-sts.txt
738 ''; 741 '';