mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
postfix: add relayPort option. (#30520)
This commit is contained in:
parent
2351947c57
commit
ad933bb096
1 changed files with 14 additions and 1 deletions
|
@ -62,7 +62,9 @@ let
|
|||
shlib_directory = false;
|
||||
relayhost = if cfg.lookupMX || cfg.relayHost == ""
|
||||
then cfg.relayHost
|
||||
else "[${cfg.relayHost}]";
|
||||
else
|
||||
"[${cfg.relayHost}]"
|
||||
+ optionalString (cfg.relayPort != null) ":${toString cfg.relayPort}";
|
||||
mail_spool_directory = "/var/spool/mail/";
|
||||
setgid_group = setgidGroup;
|
||||
}
|
||||
|
@ -458,6 +460,17 @@ in
|
|||
";
|
||||
};
|
||||
|
||||
relayPort = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
example = 587;
|
||||
description = "
|
||||
Specify an optional port for outbound mail relay. (Note:
|
||||
only used if an explicit <option>relayHost</option> is
|
||||
defined.)
|
||||
";
|
||||
};
|
||||
|
||||
lookupMX = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
|
Loading…
Reference in a new issue