CMDCommand · run as root on the server · mail family
urbestack-mail-domain-set
First published 3 Oct 2026
0.1.0Unchanged since publicationUsage
# urbestack-mail-domain-set --name DOMAIN [--routing local|remote] [--web on|off] [--outgoing on|off] [--hourly-limit N|''] [--account-hourly-limit N|''] [--outbound-ip IP|''] [--default-address reject|ADDRESS] [--spam on|off] [--junk-score N|''] [--reject-score N|''] [--junk-folder on|off] [--greylisting on|off] [--dkim on|off] [--owner USER]Description
From the command's --help outputUpdates mail settings for the domain selected by --name. Supply at least one setting to change. With --routing local, this server handles the domain's mail, including messages sent by other domains on this server, and the domain's DNS zone carries its mail records. With --routing remote, mail is hosted elsewhere and this server refuses incoming mail for the domain. When mail settings are first created, UrbeStack chooses local routing if public DNS directs the domain's mail here or if the domain has no MX record and its nameservers are delegated to this server. With mail.unpointed_domains set to accept, the domain starts with local routing and no hold even if public DNS does not point here. If none of these conditions applies, the domain starts with remote routing and mail on hold. Public DNS must already direct the domain's mail here to set --routing local with --owner. If there is no MX record, UrbeStack checks the domain's A and AAAA records. An administrator can set local routing before public DNS points here. Setting either routing mode ends any routing hold and disables automatic routing changes for the domain. --web off stops the domain's website from sending mail. --outgoing off blocks all outgoing mail for the domain, including mail sent by accounts and scripts. --hourly-limit sets the domain-wide limit and --account-hourly-limit sets the per-account limit for the domain. Both accept 0 to 1000000 messages per hour. Pass an empty value to restore the server default for that limit. --outbound-ip selects a sending IP address from dns.ipv4, dns.ipv6 or mail.extra_addresses. Pass an empty value to clear the override. --default-address controls mail for unknown recipients. Use reject to refuse it during SMTP or supply an email address to forward it there. With --spam off, mail is delivered without spam markings. Spam filtering is on by default. With --spam on, mail that reaches --reject-score is refused. Other mail that reaches --junk-score is marked as junk and delivered to Junk when --junk-folder is on. Both scores accept values from 0 to 100 with up to one decimal place. Pass an empty value to restore the server default for that score. The junk score must be below the reject score. Customers can set scores only within the range the administrator set. --greylisting off removes the first-contact delay for the domain. The Junk folder setting and greylisting inherit the server policy by default. DKIM signing is on by default. Use --dkim off to stop signing when the domain uses external DNS that lacks the DKIM record. UrbeStack keeps the key and record so --dkim on resumes signing immediately. --owner applies the change on behalf of the named customer, who must own the domain. Omit --owner to use the administrator-only options --outgoing, --hourly-limit, --account-hourly-limit and --outbound-ip.Usage: urbestack-mail-domain-set --name DOMAIN [--routing local|remote] [--web on|off] [--outgoing on|off] [--hourly-limit N|''] [--account-hourly-limit N|''] [--outbound-ip IP|''] [--default-address reject|ADDRESS] [--spam on|off] [--junk-score N|''] [--reject-score N|''] [--junk-folder on|off] [--greylisting on|off] [--dkim on|off] [--owner USER] Updates mail settings for the domain selected by --name. Supply at least one setting to change. With --routing local, this server handles the domain's mail, including messages sent by other domains on this server, and the domain's DNS zone carries its mail records. With --routing remote, mail is hosted elsewhere and this server refuses incoming mail for the domain. When mail settings are first created, UrbeStack chooses local routing if public DNS directs the domain's mail here or if the domain has no MX record and its nameservers are delegated to this server. With mail.unpointed_domains set to accept, the domain starts with local routing and no hold even if public DNS does not point here. If none of these conditions applies, the domain starts with remote routing and mail on hold. Public DNS must already direct the domain's mail here to set --routing local with --owner. If there is no MX record, UrbeStack checks the domain's A and AAAA records. An administrator can set local routing before public DNS points here. Setting either routing mode ends any routing hold and disables automatic routing changes for the domain. --web off stops the domain's website from sending mail. --outgoing off blocks all outgoing mail for the domain, including mail sent by accounts and scripts. --hourly-limit sets the domain-wide limit and --account-hourly-limit sets the per-account limit for the domain. Both accept 0 to 1000000 messages per hour. Pass an empty value to restore the server default for that limit. --outbound-ip selects a sending IP address from dns.ipv4, dns.ipv6 or mail.extra_addresses. Pass an empty value to clear the override. --default-address controls mail for unknown recipients. Use reject to refuse it during SMTP or supply an email address to forward it there. With --spam off, mail is delivered without spam markings. Spam filtering is on by default. With --spam on, mail that reaches --reject-score is refused. Other mail that reaches --junk-score is marked as junk and delivered to Junk when --junk-folder is on. Both scores accept values from 0 to 100 with up to one decimal place. Pass an empty value to restore the server default for that score. The junk score must be below the reject score. Customers can set scores only within the range the administrator set. --greylisting off removes the first-contact delay for the domain. The Junk folder setting and greylisting inherit the server policy by default. DKIM signing is on by default. Use --dkim off to stop signing when the domain uses external DNS that lacks the DKIM record. UrbeStack keeps the key and record so --dkim on resumes signing immediately. --owner applies the change on behalf of the named customer, who must own the domain. Omit --owner to use the administrator-only options --outgoing, --hourly-limit, --account-hourly-limit and --outbound-ip.
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-domain-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-domain-set/