services.postfix.settings.main.relayhost

NixOS option

List of hosts to use for relaying outbound mail. Putting the hostname in angled brackets, e.g. [relay.example.com], turns off MX and SRV lookups for the hostname. https://www.postfix.org/postconf.5.html#relayhost

type: null or (list of string)
Default
[ ]
Example
[
  "[relay.example.com]:587"
]
declared in: nixos/modules/services/mail/postfix.nixView source on NixOS/nixpkgs →