CMDCommand · run as root on the server · mail family
urbestack-mail-smarthost-set
First published 3 Oct 2026
0.1.0Unchanged since publicationUsage
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] --clearDescription
From the command's --help outputSets 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.Usage: 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 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 optionsSame in the API
These operations run the command.urbestack-mail-autoresponder-urbestack-mail-check-urbestack-mail-dkim-urbestack-mail-hold-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/