API referenceSections

MailDomain

MailDomain object
  • id string required
  • tenant_id string required
  • server_id string required
  • name string required
  • enabled boolean required
  • dkim_record string required
  • created_at string (date-time) required
  • updated_at string (date-time) required
  • mailboxes array<Mailbox> required
  • records array<MailRecord> required
  • managed_by string required

    The zone's id when the panel holds the domain's DNS

  • host MailHost | null optional

    Where mail clients and webmail connect (ADR 0039)

    • server_id string optional
    • hostname string optional
    • tls string optional
      Allowed values: "issuing" "renewing" "active" "failed"
    • not_after string (date-time) | null optional
    • error_code string optional
    • webmail string optional

      HTTPS address of webmail, empty until the certificate is installed

    • ports array<object> optional
      • protocol string optional
        Allowed values: "imap" "pop3" "smtp"
      • port integer optional
      • security string optional
        Allowed values: "ssl" "starttls"
  • catch_all string optional
    Allowed values: "off" "mailbox" "reject"
  • catch_all_mailbox string optional
  • spam_threshold integer optional
  • spam_action string optional
    Allowed values: "" "tag" "junk"
  • lists array<MailList> optional
  • features MailFeatures optional

    What the server's mail engine does with each feature (ADR 0072)

Used by

GET/api/v1/tenants/{tid}/mail/domainsMail domains with their mailboxes (ADR 0038)
POST/api/v1/tenants/{tid}/mail/domainsTurn 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}/enabledTurn the domain's mail on or off
POST/api/v1/tenants/{tid}/mail/domains/{did}/dnsAdd the mail records to the zone the panel holds
PUT/api/v1/tenants/{tid}/mail/domains/{did}/policySet a domain's catch-all and spam policy; MAIL_NOT_SUPPORTED where the engine has none (ADR 0072, 0073)