lol

postfix: add relayPort option. (#30520)

authored by

Drew Hess and committed by
Joachim Schiele
ad933bb0 2351947c

+14 -1
+14 -1
nixos/modules/services/mail/postfix.nix
··· 62 62 shlib_directory = false; 63 63 relayhost = if cfg.lookupMX || cfg.relayHost == "" 64 64 then cfg.relayHost 65 - else "[${cfg.relayHost}]"; 65 + else 66 + "[${cfg.relayHost}]" 67 + + optionalString (cfg.relayPort != null) ":${toString cfg.relayPort}"; 66 68 mail_spool_directory = "/var/spool/mail/"; 67 69 setgid_group = setgidGroup; 68 70 } ··· 455 457 default = ""; 456 458 description = " 457 459 Mail relay for outbound mail. 460 + "; 461 + }; 462 + 463 + relayPort = mkOption { 464 + type = types.nullOr types.int; 465 + default = null; 466 + example = 587; 467 + description = " 468 + Specify an optional port for outbound mail relay. (Note: 469 + only used if an explicit <option>relayHost</option> is 470 + defined.) 458 471 "; 459 472 }; 460 473