Files
pvv-nixos-config/base/services/postfix.nix
Vegard Bieker Matthey 54a6b687dd nixfmt
2026-02-20 18:12:39 +01:00

28 lines
460 B
Nix

{
config,
pkgs,
lib,
...
}:
let
cfg = config.services.postfix;
in
{
services.postfix = {
enable = true;
settings.main = {
myhostname = "${config.networking.hostName}.pvv.ntnu.no";
mydomain = "pvv.ntnu.no";
# Nothing should be delivered to this machine
mydestination = [ ];
relayhost = [ "smtp.pvv.ntnu.no:465" ];
smtp_tls_wrappermode = "yes";
smtp_tls_security_level = "encrypt";
};
};
}