MailDomain
MailDomain objectidstring requiredtenant_idstring requiredserver_idstring requirednamestring requiredenabledboolean requireddkim_recordstring requiredcreated_atstring (date-time) requiredupdated_atstring (date-time) requiredmanaged_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"What the server's mail engine does with each feature (ADR 0072)
Used by
| GET | /api/v1/tenants/{tid}/mail/domains | Mail domains with their mailboxes (ADR 0038) |
| POST | /api/v1/tenants/{tid}/mail/domains | Turn on mail for a proven domain on a server with MailEnable |
| GET | /api/v1/tenants/{tid}/mail/domains/{did} | One mail domain, with a fresh look at its DNS |
| PUT | /api/v1/tenants/{tid}/mail/domains/{did}/enabled | Turn the domain's mail on or off |
| POST | /api/v1/tenants/{tid}/mail/domains/{did}/dns | Add the mail records to the zone the panel holds |
| PUT | /api/v1/tenants/{tid}/mail/domains/{did}/policy | Set a domain's catch-all and spam policy; MAIL_NOT_SUPPORTED where the engine has none (ADR 0072, 0073) |