Merge pull request #59 from fsr/postfix-hostname
mail: update smtp_helo_hostname to match rDNS
This commit is contained in:
commit
431488f93e
|
@ -11,6 +11,7 @@ in
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostId = "a71c81fc";
|
hostId = "a71c81fc";
|
||||||
|
rdns = "x8d1e1ea9.agdsn.tu-dresden.de";
|
||||||
enableIPv6 = true;
|
enableIPv6 = true;
|
||||||
useDHCP = true;
|
useDHCP = true;
|
||||||
interfaces.ens18.useDHCP = true;
|
interfaces.ens18.useDHCP = true;
|
||||||
|
|
|
@ -71,6 +71,9 @@ in
|
||||||
'';
|
'';
|
||||||
config = {
|
config = {
|
||||||
home_mailbox = "Maildir/";
|
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 = config.networking.rdns;
|
||||||
smtp_use_tls = true;
|
smtp_use_tls = true;
|
||||||
# smtp_tls_security_level = "encrypt";
|
# smtp_tls_security_level = "encrypt";
|
||||||
smtpd_use_tls = true;
|
smtpd_use_tls = true;
|
||||||
|
|
|
@ -11,4 +11,9 @@
|
||||||
description = "under which top level domain the services should run";
|
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.";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue