Skip to content

kumo.dns.set_mx_negative_cache_ttl(DURATION)

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.

Set the negative cache TTL that should be used when caching an MX resolution failure.

DURATION is either a number expressed as optionally fractional seconds, or a human readable duration string like "5s" to specify the units.

The default value for this is "5 minutes".

kumo.on('pre_init', function()
  kumo.dns.set_mx_negative_cache_ttl '10m'
end)