# MailSmarthostSet

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

UrbeStack release 0.2.35 named type of the API.

## Fields

- `host` (string, up to 254 characters, required)
- `password` (string, up to 256 characters or null): Smarthost password. Omit this field to keep the current password, or set it to null or an empty string to remove it.
- `port` (integer, 1 to 65535)
- `tls` (boolean)
- `user` (string, up to 128 characters)

## Used by

- [PUT /domains/{name}/mail/smarthost](https://urbestack.com/docs/api/put-domains-name-mail-smarthost.md): Set the smarthost for the domain's outgoing mail
- [PUT /mail/smarthost](https://urbestack.com/docs/api/put-mail-smarthost.md): Set the server's smarthost for outgoing mail
