Name
DontProbeInterfaces
Synopsis
When sendmail first starts up, it probes all
your network interfaces to see what hostname is assigned to
each.[27] For all that it finds in the up
state, it adds that hostname to the class $=w
($=w), meaning that class will be considered
a valid name for the local machine.
Sometimes, however, especially when supporting virtual hosts,
sendmail should not consider all the interface
hosts as local. Because there is no way to remove a name from a
class, it is better to not have sendmail probe
the interfaces in the first place. Then, you will be able to manually
add (or add via your /etc/mail/local-host-names
file,[28] FEATURE(use_cw_file)) just the names you want into the class
$=w
.
You can disable sendmail’s
initial scanning of interfaces for hostnames by declaring this
DontProbeInterfaces
option:
O DontProbeInterfaces=bool ← configuration file (V8.10 through V8.11) -ODontProbeInterfaces=bool ← command line (V8.10 through V8.11) define(`confDONT_PROBE_INTERFACES',`bool') ← mc configuration (V8.10 through V8.11) O DontProbeInterfaces=string ← configuration file (V8.12 and later) -ODontProbeInterfaces=string ← command line (V8.12 and later) define(`confDONT_PROBE_INTERFACES',`string')← mc configuration (V8.12 and later)
The argument bool
is of type
Boolean. If it is missing, the default value is
true—don’t probe interfaces at startup for
hostnames. The argument string
is of type String (for V8.12 and above). If it is missing, the default value is ...
Get Sendmail, 3rd 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.