base/postfix: migrate config to new format

This commit is contained in:
h7x4 2025-12-05 02:23:46 +09:00
parent e9bebc8119
commit d666aa6c33
No known key found for this signature in database
GPG Key ID: 9F2F7D8250F35146

View File

@ -6,18 +6,17 @@ in
services.postfix = { services.postfix = {
enable = true; enable = true;
hostname = "${config.networking.hostName}.pvv.ntnu.no"; settings.main = {
domain = "pvv.ntnu.no"; myhostname = "${config.networking.hostName}.pvv.ntnu.no";
mydomain = "pvv.ntnu.no";
relayHost = "smtp.pvv.ntnu.no"; # Nothing should be delivered to this machine
relayPort = 465; mydestination = [ ];
relayhost = [ "smtp.pvv.ntnu.no:465" ];
config = {
smtp_tls_wrappermode = "yes"; smtp_tls_wrappermode = "yes";
smtp_tls_security_level = "encrypt"; smtp_tls_security_level = "encrypt";
}; };
# Nothing should be delivered to this machine
destination = [ ];
}; };
} }