sendmail, 4th Edition

${server_name}

The host name 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 hostname is stored in this ${server_name} macro. If the connection is local, as with LMTP, this ${server_name} macro is given the name of the delivery agent as its value. If neither situation is true, this ${server_name} macro is given the literal value local .

The ${server_name} macro is used primarily with the authinfo (Section 10.9.3.2), tls_server (Section 10.10.8.2), and try_tls (Section 10.10.8.4) rule sets.

The ${server_name} 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_name} , not ${server_name} ).

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



Sendmail
sendmail, 4th Edition
ISBN: 0596510292
EAN: 2147483647
Year: 2002
Pages: 1174

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net