Get your free beta license ↗
CMDCommand · run as root on the server · mail family

urbestack-mail-smarthost-set

First published 3 Oct 20260.1.0Unchanged since publication

Usage

2 forms
# urbestack-mail-smarthost-set [--name DOMAIN] --host HOST [--port 587] [--user USER] [--tls on|off] [--password-stdin | --no-password]
# urbestack-mail-smarthost-set [--name DOMAIN] --clear

Description

From the command's --help output
Sets the smarthost for the server's outgoing mail or, with --name, for one domain. Supply the
relay hostname with --host. The port defaults to 587, and TLS is required by default.

Use --user for the relay login, up to 128 characters. With --password-stdin, the command reads
the password from standard input. The password can be up to 256 characters and is omitted from
listings. Use --no-password to remove a stored password, or omit both password options to keep
using it. Use --clear to remove the smarthost and its stored password. Administrators only.

Options

Find other commands that accept these options

Same in the API

These operations run the command.

More in mail

38 commands, by what they work onView all commands in this family →
urbestack-mail-account-
urbestack-mail-autoresponder-
urbestack-mail-check-
urbestack-mail-dkim-
urbestack-mail-domain-
urbestack-mail-filter-
urbestack-mail-forwarder-
urbestack-mail-greylist-
urbestack-mail-hold-
urbestack-mail-list-
urbestack-mail-queue-
urbestack-mail-settings-
urbestack-mail-smarthost-
Generated from release 0.2.35 (current) · urbestack-mail-smarthost-set --help outputThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/commands/urbestack-mail-smarthost-set/