networking: introduce rdns option

This commit is contained in:
Rouven Seifert 2023-09-01 10:42:22 +02:00
parent b3254db337
commit 6dd628403c
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 8 additions and 1 deletions

View file

@ -11,6 +11,7 @@ in
networking = {
hostId = "a71c81fc";
rdns = "x8d1e1ea9.agdsn.tu-dresden.de";
enableIPv6 = true;
useDHCP = true;
interfaces.ens18.useDHCP = true;

View file

@ -72,7 +72,8 @@ in
config = {
home_mailbox = "Maildir/";
# hostname used in helo command. It is recommended to have this match the reverse dns entry
smtp_helo_name = "x8d1e1ea9.agdsn.tu-dresden.de";
# smtp_helo_name = "x8d1e1ea9.agdsn.tu-dresden.de";
smtp_helo_name = config.networking.rdns;
smtp_use_tls = true;
# smtp_tls_security_level = "encrypt";
smtpd_use_tls = true;

View file

@ -11,4 +11,9 @@
description = "under which top level domain the services should run";
};
};
options.networking.rdns = mkOption {
type = types.str;
default = networking.fqdn;
description = "The reverse dns record known to be set for this host.";
};
}