smtp-server/resources/tests/config/rules.toml
2022-12-27 18:11:50 +00:00

29 lines
612 B
TOML

[rule]
"my-nested-rule" = { any-of = [
{if = "rcpt-domain", eq = "example.org"},
{if = "remote-ip", eq = "192.168.0.0/24"},
{all-of = [
{if = "rcpt", starts-with = "no-reply@"},
{if = "sender", ends-with = "@domain.org"},
{none-of = [
{if = "priority", eq = 1},
{if = "priority", ne = -2},
]}
]}
]}
[rule."simple"]
if = "listener"
eq = "smtp"
[rule."is-authenticated"]
if = "authenticated-as"
ne = ""
[[rule."expanded".all-of]]
if = "sender-domain"
starts-with = "example"
[[rule."expanded".all-of]]
if = "sender"
in-list = "test-list"