edjx domain rules create

Create a rule for a specific domain.

edjx domain rules create <name> <match-value> <destination> [flags]

Arguments

name              Set the name of the rule
match-value       Set the Routing Match Type
destination       Set the Routing Destination

Flags

-d, --domain <domain-id>        Optional. Domain ID (default 00000000-0000-0000-0000-000000000000)
-e, --exact                     Optional. Use the match value to match against verbatim
-o, --order <int>               Required for MX rules. Priority order of a rule
-p, --pattern                   Required. Use the match value as a pattern to match against
    --redirect                  Optional. Sets the routing action value to redirect
    --rewrite                   Optional. Sets the routing action value to rewrite

Example

root@edjx:~ # edjx domain rules create rule-exact-match http://or1.com/support?name=support http://org1.com
 -e --redirect
Rule created successfully.
Rule ID: 79afb1a1-21d1-4029-82d0-d9a7913ded63
routing rule examples