FEATURE(virtuser_entire_domain)
Match subdomains in the virtual user table V8.10 and later
Ordinarily, domains listed in the $=w
class or the
$={VirtHost}
class are looked up in the virtual user table as is,
meaning that only host-for-host or domain-for-domain
matches are made. This FEATURE(virtuser_entire_domain)
changes
that behavior and allows subdomains to also be
looked up.
Consider, for example, that the domain wanted.com is listed with the VIRTUSER_DOMAIN mc configuration macro (VIRTUSER_DOMAIN mc macro on page 647) and the following lines are listed in the virtual host table:
info@wanted.com hans@remote.host info@sales.wanted.com hans@remote.host
Here, mail sent to
info@sales.wanted.com would
ordinarily not be looked up. But by declaring this
FEATURE(virtuser_entire_domain)
, all
hosts in the subdomain
wanted.com would will be
looked up, so the address
info@sales.wanted.com would now
find a match.
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.