API referenceSections

Mail

26 operations. Open one for its parameters, request body, responses and examples.

MethodPathSummary
GET/api/v1/tenants/{tid}/connection-infoEverything the account needs to connect - panel, DNS, FTP, mail - and whether the domain points here
GET/api/v1/tenants/{tid}/connection-info/mail-configA mail client set-up file without any password - Thunderbird autoconfig, Outlook autodiscover or an Apple profile
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
DELETE/api/v1/tenants/{tid}/mail/domains/{did}Remove the domain, its mailboxes and their mail from the server
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}/enabledTurn the domain's mail on or off
POST/api/v1/tenants/{tid}/mail/domains/{did}/listsAdd a mailing list (ADR 0072)
PUT/api/v1/tenants/{tid}/mail/domains/{did}/lists/{lid}Change a mailing list's owner, moderation and members
DELETE/api/v1/tenants/{tid}/mail/domains/{did}/lists/{lid}Remove a mailing list
POST/api/v1/tenants/{tid}/mail/domains/{did}/mailboxesAdd a mailbox; the password goes to the server once
PUT/api/v1/tenants/{tid}/mail/domains/{did}/mailboxes/{mid}Change a mailbox; the password only when given
DELETE/api/v1/tenants/{tid}/mail/domains/{did}/mailboxes/{mid}Remove a mailbox and its mail
PUT/api/v1/tenants/{tid}/mail/domains/{did}/mailboxes/{mid}/autoresponderSet a mailbox's autoresponder (ADR 0072)
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)
GET/api/v1/tenants/{tid}/servers/{id}/mail-hostThe server's mail host and its certificate (ADR 0039)
PUT/api/v1/tenants/{tid}/servers/{id}/mail-hostName the server's mail host and issue its certificate; needs server.manage (ADR 0039)
GET/api/v1/tenants/{tid}/servers/{id}/mail-queueMessages waiting to leave the server, envelopes only; needs server.manage (ADR 0074)
POST/api/v1/tenants/{tid}/servers/{id}/mail-queue/actionsRetry or delete queued messages; needs server.manage
GET/api/v1/tenants/{tid}/servers/{id}/mail-settingsThe server's mail settings; needs server.manage (ADR 0073, 0074)
PUT/api/v1/tenants/{tid}/servers/{id}/mail-settingsSet the smarthost, spam and virus filtering and the server-wide cap; needs server.manage
GET/api/v1/tenants/{tid}/servers/{id}/mail-usageThe last hour's outgoing mail against each plan's limits; needs server.manage (ADR 0073)
GET/api/v1/tenants/{tid}/smtpThe panel's outgoing mail server (ADR 0057); provider tenant only. The password is never returned
PUT/api/v1/tenants/{tid}/smtpSet the outgoing mail server; an empty password keeps the stored one
POST/api/v1/tenants/{tid}/smtp/testSend a test email now; the answer says whether the server took it