Mailboxes

Create mailbox

You may create your own mailbox using this action. It takes a JSON object containing a domain informations.

post/api/v1/add/mailbox

Request body

activeboolean

is mailbox active or not

domainstring

domain name

local_partstring

left part of email address

namestring

Full name of the mailbox user

password2string

mailbox password for confirmation

passwordstring

mailbox password

quotanumber

mailbox quota

force_pw_updateboolean

forces the user to update its password on first login

tls_enforce_inboolean

force inbound email tls encryption

tls_enforce_outboolean

force oubound tmail tls encryption

Example request

{
  "active": "1",
  "domain": "domain.tld",
  "local_part": "info",
  "name": "Full name",
  "password": "atedismonsin",
  "password2": "atedismonsin",
  "quota": "3072",
  "force_pw_update": "1",
  "tls_enforce_in": "1",
  "tls_enforce_out": "1"
}

Response

OK

type'success' | 'danger' | 'error'

Changes