# MailStatus

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 named type of the API.

## Fields

- `account_domains` (integer): Number of domains with at least one mail account.
- `accounts` (integer): Number of mail accounts across all domains on the server.
- `addresses` (array of string)
- `antivirus` (object): ClamAV status (mail.antivirus), off by default because clamd uses about 1 GB of memory. When virus scanning is active, UrbeStack rejects infected messages during SMTP and returns the reason.
  - `active` (boolean): Whether the mail filter queries clamd. This requires mail.antivirus to be enabled, clamd to be installed, and its virus signatures to be present on disk.
  - `enabled` (boolean): Whether mail.antivirus is enabled.
  - `installed` (boolean): Whether clamd is installed. Install it through POST /mail/install with antivirus.
  - `running` (boolean): Whether the clamd socket exists.
  - `signatures_at` (string): Time the ClamAV signatures were last updated. This field is absent before the first download.
- `daemons` (object or null): Loopback health checks for the Postfix banner on port 25, the Dovecot banner on port 143, the Rspamd controller, and the key-value store's PING. Each daemon's version comes from its executable, and the field is null until the mail stack is installed.
  - `dovecot` (MailDaemon)
  - `postfix` (MailDaemon)
  - `rspamd` (MailDaemon)
  - `store` (MailDaemon)
- `domain_smarthosts` (array of object): Mail domains that use their own outbound relay, configured on each domain's page in the web interface.
  - `domain` (string)
  - `has_password` (boolean)
  - `host` (string)
  - `port` (integer)
  - `smarthost_user` (string or null)
  - `tls` (boolean)
  - `user` (string)
- `enabled` (boolean)
- `extra_port` (string): Additional SMTP submission port alongside ports 25, 465, and 587, or an empty string if none is configured.
- `hostname` (string)
- `hostname_zone` (string or null): DNS zone hosted on this server that contains the mail server hostname's records.
- `installed` (boolean)
- `log_subjects` (boolean): Whether every message's subject is recorded in the mail log (mail.log_subjects).
- `managesieve_public` (boolean)
- `policy` (object)
- `read_at` (string): Time the mail status was read.
- `running` (boolean or null): Whether Postfix, Dovecot, and Rspamd all respond. The value is null when none could be checked.
- `smarthost` (MailSmarthost or null)
  - `has_password` (boolean)
  - `host` (string)
  - `port` (integer)
  - `tls` (boolean)
  - `user` (string)
- `smarthost_spf` (string): SPF term from mail.smarthost_spf included in every mail domain's SPF record while a smarthost is configured. An empty string means no term is configured.
- `store_unit` (string): Name of the key-value store's service unit on this Linux distribution, either valkey or redis-server.
- `trusted_networks` (array of string)
- `webmail` (object)
  - `active` (boolean)
  - `url` (string or null)
  - `verified` (boolean): Whether Roundcube verifies the UrbeStack certificate. The value is false while the self-signed certificate from installation is in use.

## Used by

- [GET /mail](https://urbestack.com/docs/api/get-mail.md): Get the server's mail stack status and configuration
