March 26, 2020 Contributors


match_cache_size — the size of the cache that holds the results of looking up matching scopes


match_cache_size = 16384


This option determines the maximum number of elements in a cache that holds the results of looking up matching scopes. It applies to regex domains, Peer scopes in listeners, and any user-defined scopes that use matching.

For example, if your configuration uses regex domains, then, for best performance, the cache size should be larger than the number of unique queries. This should be at least the number of unique destination domains to which you send.

It is not necessary to restart the MTA if changes are made to this option using config set .

The default value is 16384.


The Match_Cache_Size MUST NOT be set to 0; doing so will result in undefined behavior.


match_cache_size is valid in the global scope.

See Also

match_cache_life and domain