fix: stalwart new config format
This commit is contained in:
parent
57454a768b
commit
27e1a7cc3f
|
@ -205,17 +205,12 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
settings =
|
settings =
|
||||||
let
|
let
|
||||||
case = field: check: value: data: {
|
|
||||||
"if" = field;
|
|
||||||
${check} = value;
|
|
||||||
"then" = data;
|
|
||||||
};
|
|
||||||
ifthen = field: data: {
|
ifthen = field: data: {
|
||||||
"if" = field;
|
"if" = field;
|
||||||
"then" = data;
|
"then" = data;
|
||||||
};
|
};
|
||||||
otherwise = value: { "else" = value; };
|
otherwise = value: { "else" = value; };
|
||||||
is-smtp = case "listener" "eq" "smtp";
|
is-smtp = ifthen "listener = 'smtp'";
|
||||||
is-authenticated = data: {
|
is-authenticated = data: {
|
||||||
"if" = "!is_empty(authenticated_as)";
|
"if" = "!is_empty(authenticated_as)";
|
||||||
"then" = data;
|
"then" = data;
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue