Events & receiving
Inbound routes
Receive email on your domains and forward, store or drop it.
Point your domain's MX record to mx.mailzone.oritool.com, then create routes. Routes are evaluated in order of priority (lowest first); every matching route runs until one executes stop().
Filters
match_recipient("[email protected]")— regular expression on the recipientmatch_header("subject", ".*invoice.*")— regular expression on a headercatch_all()— every message
Actions
forward("https://example.com/inbound")— POST the parsed message to your URLforward("[email protected]")— re-send to another mailboxstore(notify="https://…")— keep for 3 days and notify a URLstop()— do not evaluate lower-priority routes
Example
curl -s --user 'api:mz_your_api_key' https://mailzone-api.oritool.com/v3/routes \
-F priority=0 \
-F description='Support inbox' \
-F expression='match_recipient("[email protected]")' \
-F action='forward("https://example.com/inbound")' \
-F action='stop()'Forwarded request
URLs receive multipart/form-data with recipient, sender, from, subject, body-plain, stripped-text, body-html, attachment-count, attachment-N, message-headers and the same timestamp/token/signature fields as webhooks.