Turn on mail for a proven domain on a server with MailEnable
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/mail/domainsTurn on mail for a proven domain on a server with MailEnable
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
namestring requiredserver_idstring required
Example
{
"name": "string",
"server_id": "string"
}Responses
201 OK
Content type: application/json
idstring requiredtenant_idstring requiredserver_idstring requirednamestring requiredenabledboolean requireddkim_recordstring requiredcreated_atstring (date-time) requiredupdated_atstring (date-time) requiredidstring requireddomain_idstring requiredtenant_idstring requiredlocalstring requiredquota_mbinteger required0 is no limit
enabledboolean requiredforwardarray<string> requiredaliasesarray<string> requiredOther names before the @ in the same domain
size_kbinteger requiredenabledboolean requiredsubjectstring requiredOne line
- max length 200
bodystring requiredPlain text
- max length 8000
startstring optionalFirst day it replies, YYYY-MM-DD in the server's time zone; empty for no bound
endstring optionalLast day it replies, YYYY-MM-DD
created_atstring (date-time) requiredupdated_atstring (date-time) required
namestring requiredtypestring requiredvaluestring requiredstatusstring requiredAllowed values:"ok""missing""different""unknown"
managed_bystring requiredThe zone's id when the panel holds the domain's DNS
Where mail clients and webmail connect (ADR 0039)
server_idstring optionalhostnamestring optionaltlsstring optionalAllowed values:"issuing""renewing""active""failed"not_afterstring (date-time) | null optionalerror_codestring optionalwebmailstring optionalHTTPS address of webmail, empty until the certificate is installed
portsarray<object> optionalprotocolstring optionalAllowed values:"imap""pop3""smtp"portinteger optionalsecuritystring optionalAllowed values:"ssl""starttls"
catch_allstring optionalAllowed values:"off""mailbox""reject"catch_all_mailboxstring optionalspam_thresholdinteger optionalspam_actionstring optionalAllowed values:"""tag""junk"idstring requireddomain_idstring requiredtenant_idstring requiredlocalstring requiredownerstring requiredOwner and moderator
moderatedboolean requiredPosts go to the owner first
membersarray<string> requiredcreated_atstring (date-time) requiredupdated_atstring (date-time) required
What the server's mail engine does with each feature (ADR 0072)
enginestring requiredAllowed values:"""mailenable""smartermail"statusstring requiredAllowed values:"experimental""limited""not_supported"reasonstring optionalA code saying why, for the UI to explain
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Example
{
"id": "string",
"tenant_id": "string",
"server_id": "string",
"name": "string",
"enabled": true,
"dkim_record": "string",
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z",
"mailboxes": [
{
"id": "string",
"domain_id": "string",
"tenant_id": "string",
"local": "string",
"quota_mb": 0,
"enabled": true,
"forward": [
"string"
],
"aliases": [
"string"
],
"size_kb": 0,
"autoresponder": {
"enabled": true,
"subject": "string",
"body": "string",
"start": "string",
"end": "string"
},
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z"
}
],
"records": [
{
"name": "string",
"type": "string",
"value": "string",
"status": "ok"
}
],
"managed_by": "string",
"host": {
"server_id": "string",
"hostname": "string",
"tls": "issuing",
"not_after": "2026-01-01T00:00:00Z",
"error_code": "string",
"webmail": "string",
"ports": [
{
"protocol": "imap",
"port": 0,
"security": "ssl"
}
]
},
"catch_all": "off",
"catch_all_mailbox": "string",
"spam_threshold": 0,
"spam_action": "",
"lists": [
{
"id": "string",
"domain_id": "string",
"tenant_id": "string",
"local": "string",
"owner": "string",
"moderated": true,
"members": [
"string"
],
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z"
}
],
"features": {
"engine": "",
"autoresponder": {
"status": "experimental",
"reason": "string"
},
"catch_all": {
"status": "experimental",
"reason": "string"
},
"out_limit_mailbox": {
"status": "experimental",
"reason": "string"
},
"out_limit_domain": {
"status": "experimental",
"reason": "string"
},
"spam_filter": {
"status": "experimental",
"reason": "string"
},
"spam_per_domain": {
"status": "experimental",
"reason": "string"
},
"antivirus": {
"status": "experimental",
"reason": "string"
},
"queue": {
"status": "experimental",
"reason": "string"
},
"smarthost": {
"status": "experimental",
"reason": "string"
},
"lists": {
"status": "experimental",
"reason": "string"
}
}
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required