Files
pvv-nixos-config/modules/sendonly-postfix.nix
h7x4 1df959136d
Some checks reported warnings
Eval nix flake / evals (push) Has been cancelled
modules: add sendonly postfix modules
2024-05-11 20:25:45 +02:00

24 lines
442 B
Nix

{ config, pkgs, lib, ... }:
let
cfg = config.services.postfix;
in
{
services.postfix = {
enable = true;
hostname = "${config.networking.hostName}.pvv.ntnu.no";
domain = "pvv.ntnu.no";
relayHost = "smtp.pvv.ntnu.no";
relayPort = 465;
config = {
smtp_tls_wrappermode = "yes";
smtp_tls_security_level = "encrypt";
};
# Nothing should be delivered to this machine
destination = [ ];
};
}