mirror of
https://github.com/stalwartlabs/smtp-server.git
synced 2024-11-25 00:37:44 +00:00
29 lines
612 B
TOML
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"
|