# mail.hosts()

Canonical URL: https://developers.iagenify.com/pt/sdk/ref/domain/mail/hosts/
Language: pt

`domain.mail.hosts() → Promise<Host[]>`

Ogni host in questo dominio in cui il mail è habilitat, con i suoi testimoni, il selector e quante buxes porta.

Status: free · apex and subdomains · mailbox counts

```javascript
for (const host of await domain.mail.hosts()) {
  console.log(host.host, host.ready ? "ready" : "incomplete", host.mailboxes, "mailboxes");
}
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `host` | string |  | Il nome host completo — l'apex, o un subdominio. |
| `selector` | string |  | Selecciona di tecla di firma. |
| `mxOk · spfOk · dkimOk · dmarcOk` | boolean |  | I quattro testimoni. |
| `ready` | boolean |  | I quattro, e il dominio attivo. |
| `mailboxes` | integer |  | Quants addresses egìn su die. |
| `enabledAt` | string |  | Quando era configurat. |

## Por qua pota ser varios {#why-list}

> **Mail è configurato per host, non per dominio**
>
> Un apex che già riceve in altre parti, un subdominio per il team, un altro per le notificîs — cada uno ha i propri records, la sua propria chiave e la sua politica. Una politica sul apex non copre un subdominio.

## i buxes de postas è ciò che rende un host difficile de remover {#mailboxes}

Incapacitare un host con buxboxes in esso interrompe la ricevuta di quei dislocati. La conta è qui per che si può dire prima che accada.

## Un host che non è pronto {#incomplete}

Chama [enable()](/pt/sdk/ref/domain/mail/enable) di nuovo: pone in esso ce che manca e non cambia ningun altro.

- [mail.status()](/pt/sdk/ref/domain/mail/status): Un host in dettaglio.
- [api.mail](/pt/sdk/ref/mail): I buxes di si.

```python
for host in domain.mail.hosts():
    print(host["host"], "ready" if host["ready"] else "incomplete", host["mailboxes"], "mailboxes")
```
