postfix: add relayPort option. (#30520)
This commit is contained in:
parent
2351947c57
commit
ad933bb096
@ -62,7 +62,9 @@ let
|
|||||||
shlib_directory = false;
|
shlib_directory = false;
|
||||||
relayhost = if cfg.lookupMX || cfg.relayHost == ""
|
relayhost = if cfg.lookupMX || cfg.relayHost == ""
|
||||||
then cfg.relayHost
|
then cfg.relayHost
|
||||||
else "[${cfg.relayHost}]";
|
else
|
||||||
|
"[${cfg.relayHost}]"
|
||||||
|
+ optionalString (cfg.relayPort != null) ":${toString cfg.relayPort}";
|
||||||
mail_spool_directory = "/var/spool/mail/";
|
mail_spool_directory = "/var/spool/mail/";
|
||||||
setgid_group = setgidGroup;
|
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 {
|
lookupMX = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user