mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2025-12-06 02:56:26 +01:00
23 lines
452 B
Nix
23 lines
452 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";
|
|
};
|
|
};
|
|
}
|