''${server_addr}'' '''


The address of the connected-to machine V8.11 and above

When sendmail connects to another machine to send email, it gathers two pieces of information about that machine: its name and IP address. If the connection is over a network, the IP address is stored in this ${server_addr} macro. If the connection is local, as with LMTP, this ${server_addr} macro is given the name of the delivery agent as its value. If neither situation is true, this ${server_addr} macro is given a 0 (a literal zero character) as its value.

The ${server_addr} macro is used chiefly with the authinfo (Section, tls_server (Section, and try_tls (Section rule sets.

The ${server_addr} macro is available for your use in rule sets, and can be useful, for example, in policy control. Note that a $& prefix is necessary when you reference this macro in rules (that is, use $&{server_addr}, not ${server_addr}).

${server_addr} is transient. If it is defined in the configuration file or in the command line, that definition can be ignored by sendmail. ${server_addr} must never be set with the macro database map (macro) to a value that is empty.

    Part I: Build and Install
    Part II: Administration
    Part III: The Configuration File
    Chapter 21. The D (Define a Macro) Configuration Command
    Chapter 24. The O (Options) Configuration Command