Skip to main content
Mail Management

Enable ImprovMX forwarding for a server domain

Configures ImprovMX for inbound forwarding on the provided domain. Check getServerMailManagement before enabling: repeated enablement of a configured/pending integration is rejected, and a DNS failure after remote creation may leave partial setup requiring review before any fresh attempt. This requires a premium-eligible server profile (normally profile value above EUR 5.99 equivalent). Pass domain only for manual DNS setup, or include cfZoneId and cfAccountId for automatic DNS records. Automatic setup is rejected before creating a provider domain if an SPF TXT or MX record already exists; review existing mail routing, and use manual mode to merge the ImprovMX include into an existing SPF record rather than adding a second SPF record. After either mode, read getServerMailManagement.improvmx.dnsRecords: if Cloudflare DNS was selected Webdock writes those records automatically; otherwise have the operator add them at their DNS provider. Poll improvmx.mxVerified for live readiness (the status field updates later via a validation job); the TXT SPF record is for outbound forwarding.

POST
/servers/{serverSlug}/mail/improvmx/enable
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

serverSlugstringrequired
Minimum string length: 1

Body

application/json
cfAccountIdinteger

Webdock Cloudflare credential id from getServerMailCloudflareOptions.accounts[].id; required with cfZoneId, not a native Cloudflare account id

Required range: 1 <= x
cfZoneIdstring

Optional Cloudflare zone ID for automatic DNS setup; domain must be this zone or a subdomain of it

domainstringrequired

Nonempty forwarding domain to configure

Minimum string length: 1
zonestring

Legacy combined '<zoneId>|<domain>' selector. If provided it overrides cfZoneId; cfAccountId is still required. Prefer domain + cfZoneId + cfAccountId for new clients.

Response

application/json

Updated mail-management state after enabling ImprovMX

improvmxobject

Current ImprovMX forwarding state and inbound-forwarding statistics

postmarkobject

Current Postmark integration state and outbound-email statistics

qualifiersobject

Eligibility and qualifier details for mail features on this server