FEATURE(stickyhost)
Differ user from user@local.host V8.7 and later
Beginning with V8.7 sendmail,
addresses with and without a host part that resolve
to local delivery are handled in the same way. For
example, user and
user@local.host are both
looked up with the User Database (userdb on page 942) and processed
by the localaddr
rule set 5 (The localaddr Rule Set 5 on page 700). This processing can result in those
addresses being forwarded to other machines.
With FEATURE(stickyhost), you can change
this behavior:
FEATURE(`stickyhost')
By defining stickyhost, you are telling
sendmail to mark addresses
that have a local host part as “sticky”:
user ← not sticky user@local.host ← sticky
Sticky hosts tend to be delivered on the local
machine. That is, they are not looked up with the
User Database and are not processed by the localaddr rule set
5.
One use for this feature is to create a domain-wide namespace. In it, all addresses without a host part will be forwarded to a central mail server. Those with a local host part will remain on the local machine and be delivered in the usual local way.
Note that this is opposite the behavior of the former
FEATURE(notsticky) of V8.6.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access