Meghly Send

Receive guide

Inbound routes in Meghly Send: match incoming mail by recipient or header, forward it to an address or a URL, and test a route before relying on it.

Receive lets you decide what happens to mail that arrives at your domain.

Status: routes can be written, stored and tested now. Forwarding of received mail goes live with the receiving deployment, so do not rely on it for production mail until it is switched on for your account.

A route

json
{
  "priority": 10,
  "description": "support",
  "isActive": true,
  "expression": "match_recipient(\"^support@yourdomain\\.com$\")",
  "actions": ["forward(\"team@example.org\")", "stop()"]
}

Make routes with POST /api/v1/routes (scope manage_domains). Up to 100 routes, each with up to 5 actions.

Expressions

ExpressionMatches
catch_all()Every message
match_recipient("regex")The recipient address
match_header("name","regex")A header's value

Join them with and or or (and binds tighter). Regexes are case-insensitive and give up after 100 ms.

Actions

ActionDoes
forward("address")Sends a copy to an address
forward("https://url")Posts the message to a URL
stop()Ends the run

Routes run lowest priority first.

Test before you rely on it

POST /api/v1/routes/test shows which routes match a message and what they would do, without doing it.

আটকে গেছেন?

আমাদের ইঞ্জিনিয়ারদের সাথে সরাসরি কথা বলুন — ফোন বা ইমেইলে, বাংলায়।

01782618248shohag.meghly@gmail.com