SPF / DMARC / DKIM / BIMI / MTA-STS record generator
email_generatorsGenerate ready-to-paste DNS TXT records (and MTA-STS policy text) for SPF, DMARC, DKIM, BIMI, or MTA-STS. type (default "spf") picks the family and domain defaults to example.com; structured fields (senders, policy/rua, selector/publicKey, logoUrl, mxHosts/stsMode) always override legacy text shorthand. Use to draft records, not audit live DNS - call sibling audit tools (spf, dmarc, dkim, bimi, mta_sts) instead. Offline except type="mta-sts" (queries live MX if mxHosts/text omitted); refuses private keys with isError=true. Requires middle.network auth; uses 1 daily quota unit.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "email_generators"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fo | No | DMARC: failure reporting trigger (fo=). | |
| pct | No | DMARC: percentage of failing messages to apply the policy to (pct=). | |
| rua | No | DMARC: aggregate report recipient email or mailto: URI (rua=). | |
| ruf | No | DMARC: optional forensic/failure report email or mailto: URI (ruf=). | |
| aspf | No | DMARC: SPF alignment mode: r (relaxed) or s (strict). | |
| text | No | Optional shorthand settings text (legacy/quick mode): spf senders and policy, or semicolon/newline key=value pairs. Structured fields above take precedence when provided. | |
| type | No | Which email authentication DNS record to build. | spf |
| adkim | No | DMARC: DKIM alignment mode: r (relaxed) or s (strict). | |
| domain | No | The domain the record is for. Leave out for example.com. | |
| policy | No | DMARC: policy for messages failing authentication (p=). | none |
| vmcUrl | No | BIMI: optional HTTPS URL to your VMC or CMC PEM certificate (a=). | |
| keyType | No | DKIM: key algorithm (k=). | rsa |
| logoUrl | No | BIMI: HTTPS URL to your SVG Tiny PS logo (l=). | |
| mxHosts | No | MTA-STS: authorised MX hostnames or wildcards (for example *.mail.protection.outlook.com). Leave out to read live MX records. | |
| senders | No | SPF: authorised senders (include:_spf.google.com, ip4:192.0.2.1, mx, a, or a bare domain). | |
| stsMode | No | MTA-STS: policy mode (start with testing, then move to enforce). | testing |
| selector | No | DKIM: selector name (for example s1 or mail2026). Defaults to mn1. | |
| publicKey | No | DKIM: optional public key (PEM SPKI or base64) to format into v=DKIM1; k=...; p=... Never send a private key. | |
| spfPolicy | No | SPF: all-mechanism qualifier (-all hard fail, ~all soft fail, ?all neutral, +all pass). | -all |
| stsMaxAge | No | MTA-STS: policy cache lifetime in seconds (86400 to 31557600). | |
| subdomainPolicy | No | DMARC: optional policy override for subdomains (sp=). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ISO-8601 UTC timestamp when the result was generated. | |
| ms | No | Elapsed execution time in milliseconds. | |
| data | Yes | Tool-specific structured payload (records, timings, parsed fields, or scores). | |
| tool | Yes | Catalog tool identifier. | |
| share | No | Optional shareable report link metadata. | |
| status | Yes | Overall diagnostic verdict (worst finding wins; no findings = pass). | |
| target | Yes | Normalised domain, IP, or input target. | |
| limited | No | Optional list of upstream data sources that were rate-limited or unavailable. | |
| summary | Yes | Plain-English and technical one-line summaries. | |
| findings | Yes | Ordered diagnostic findings with severity and actionable fixes. |