type.inbound
and (
strings.ilike(sender.display_name, '*fastway*')
or strings.ilevenshtein(sender.display_name, 'fastway couriers') <= 1
)
and sender.email.domain.root_domain not in~ ('fastway.co.za', 'fastway.com.au', 'fastway.ie')
// negate highly trusted sender domains unless they fail DMARC authentication
and (
(
sender.email.domain.root_domain in $high_trust_sender_root_domains
and not headers.auth_summary.dmarc.pass
)
or sender.email.domain.root_domain not in $high_trust_sender_root_domains
)
// and no false positives and not solicited
and (
not profile.by_sender().any_messages_benign
and not profile.by_sender().solicited
)
Playground
Test against your own EMLs or sample data.