Skip to main content
Mail Management

Enable Postmark transactional email for a server

Configures Postmark for transactional outbound email on this server. Check getServerMailManagement first: 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 is only available for premium-eligible profiles and, while requires_validation is true, blocked until account approval (is_allowed_postmark=true). If blocked, contact Webdock Support to request Postmark access. Pass domain only for manual DNS setup, or include cfZoneId and cfAccountId for automatic DNS records. After either mode, read getServerMailManagement.postmark.dnsRecords: if Cloudflare DNS was selected Webdock writes those records automatically; otherwise have the operator add them at their DNS provider. Poll postmark.domainValidation.dkimVerified for live readiness (the status field updates later via a validation job); the return-path CNAME is recommended but optional. Postmark SMTP host/port and API token are returned in smtpConfiguration once DKIM is verified. Treat the token as highly sensitive and never expose it in logs, prompts, or transcripts.

POST
/servers/{serverSlug}/mail/postmark/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 sender 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 Postmark

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