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
declared in: nixos/modules/services/mail/postfix.nixView source on NixOS/nixpkgs →[ "[relay.example.com]:587" ]