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

urbestack-mail-list-add

First published 3 Oct 20260.1.0Unchanged since publication

Usage

2 forms
# urbestack-mail-list-add (--domain DOMAIN | --server) (--allow ENTRY | --block ENTRY | --nogreylist ENTRY) [--owner USER]
# urbestack-mail-list-add (--domain DOMAIN | --server) --kind allow|block|nogreylist --stdin [--owner USER] < entries, one per line

Description

From the command's --help output
Adds entries to a domain's mail sender list or, with --server, to a server-wide list. Use
--owner to act for the customer who owns the domain. Server-wide lists are reserved for
administrators.

--allow and --block accept an email address such as someone@example.net, a domain such as
example.net, or a wildcard domain such as '*.example.net'. A wildcard matches only subdomains,
at any depth. Entries match both envelope and header senders. For every recipient domain covered
by the list, blocked senders are rejected during SMTP and allowed senders bypass spam scoring.
Block entries take precedence. Allowing a major provider's entire domain lets forged senders
from that domain bypass spam scoring. UrbeStack already trusts those providers when their DKIM
or DMARC verifies.

--nogreylist skips greylisting for a sender domain while keeping spam scoring active. It accepts
a plain or wildcard domain and applies only when SPF passes for the envelope sender or a DKIM
signature from the sender domain verifies. With --server, it also accepts sending IP addresses
and networks such as 203.0.113.5, 203.0.113.0/24 or 2001:db8::/32. Those entries match by
sending IP alone.

--stdin reads one entry per line from standard input, up to 10,000 lines per call. Use --kind to
select allow, block or nogreylist. Blank lines and lines starting with # after leading
whitespace are skipped. Entries already on the list and duplicates in the input count as already
present. Invalid entries and entries that exceed the list's capacity are refused individually.
The result counts added, already present and refused entries. It reports the first 200 already
present entries and the first 200 refused lines, with a reason for each refusal.

Each server-wide list holds up to 50,000 entries. Each domain list holds up to 2,000. A
single-entry request fails if the entry is already present or the list is full.

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-list-add --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-list-add/