pmg_transport_create
Create a mail transport rule for a domain, specifying relay host, port, and protocol. Dry-run returns a plan; confirm=True executes the rule.
Instructions
MUTATION (LOW): create a mail transport rule. Dry-run by default. confirm=True to execute. Needs PROXIMO_PMG_* config.
Dry-run returns a PLAN; confirm=True executes and returns {"status": "ok", "result": ...}. Additive — reverse with pmg_transport_delete. Overrides MX-based routing for the given domain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Next-hop relay hostname or IP for mail to this domain. | |
| port | No | TCP port to connect to on the relay host, 1-65535 (default 25). | |
| domain | Yes | Destination domain the transport rule applies to. | |
| use_mx | No | Whether to use MX lookup for the relay host (default True). | |
| comment | No | Optional free-text comment stored with the transport rule. | |
| confirm | No | False (default) returns a dry-run PLAN; True executes the mutation. | |
| protocol | No | Transport protocol: smtp|lmtp (default smtp). | smtp |
| proximo_target | No | Which configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |