zones/rebmit.moe: add srv records for mail service

References: https://www.rfc-editor.org/rfc/rfc6186
This commit is contained in:
Lu Wang 2024-12-19 23:38:45 +08:00
parent 4177868f1c
commit a75d3f9ea8
Signed by: rebmit
SSH key fingerprint: SHA256:3px8QV1zEerIrEWHaqtH5rR9kjetyRST5EipOPrd+bU
2 changed files with 22 additions and 3 deletions

View file

@ -135,7 +135,7 @@ in
file = pkgs.writeText "db.link.rebmit" ( file = pkgs.writeText "db.link.rebmit" (
import ../../../../zones/rebmit.link.nix { import ../../../../zones/rebmit.link.nix {
inherit (inputs) dns; inherit (inputs) dns;
inherit lib; inherit lib config;
} }
); );
} }
@ -144,7 +144,7 @@ in
file = pkgs.writeText "db.moe.rebmit" ( file = pkgs.writeText "db.moe.rebmit" (
import ../../../../zones/rebmit.moe.nix { import ../../../../zones/rebmit.moe.nix {
inherit (inputs) dns; inherit (inputs) dns;
inherit lib; inherit lib config;
} }
); );
} }

View file

@ -1,4 +1,9 @@
{ dns, lib, ... }: {
dns,
lib,
config,
...
}:
with dns.lib.combinators; with dns.lib.combinators;
let let
common = import ./common.nix; common = import ./common.nix;
@ -22,6 +27,20 @@ dns.lib.toString "rebmit.moe" {
]; ];
} }
]; ];
SRV = [
{
service = "imaps";
proto = "tcp";
port = config.networking.ports.imap-tls;
target = "suwako-vie0.rebmit.link.";
}
{
service = "submissions";
proto = "tcp";
port = config.networking.ports.smtp-tls;
target = "suwako-vie0.rebmit.link.";
}
];
MX = with mx; [ (mx 10 "suwako-vie0.rebmit.link.") ]; MX = with mx; [ (mx 10 "suwako-vie0.rebmit.link.") ];
TXT = [ (with spf; soft [ "mx" ]) ]; TXT = [ (with spf; soft [ "mx" ]) ];
subdomains = { subdomains = {