Skip to content

kumo.listener_domain_field_names

local names = kumo.listener_domain_field_names()
Since: Dev Builds Only

The functionality described in this section requires a dev build of KumoMTA. You can obtain a dev build by following the instructions in the Installation section.

Returns the names of the options accepted by kumo.make_listener_domain, as an array of strings.

The list is read directly from the listener domain type in kumod, so these are exactly the option names that kumo.make_listener_domain accepts.

Use this to classify a configuration key as a listener domain option before deciding how to handle it, without calling kumo.make_listener_domain and inspecting the result. The policy-extras.listener_domains helper uses it this way to tell a listener domain option apart from other keys while validating listener_domains.toml.

See also: