1.2 on page 255), which is called just after the MAIL From:
command is received. The single rule in that rule set uses the log database map to syslog
the client??™s name, address, and port number. The $@ beginning the RHS causes the rule set
to return immediately after logging.
${client_port} is transient. If it is defined in the configuration file or in the command line,
that definition can be ignored by sendmail. Note that a $& prefix is necessary when you
reference this macro in rules (that is, use $&{client_port}, not ${client_port}).
21.9.23 ${client_ptr}
Connecting client??™s PTR record V8.13 and later
When a client host connects to the listening sendmail server, that server knows the IP
address of the connecting client but not its hostname. To find the hostname, sendmail
performs a reverse lookup to find a PTR record which contains the host??™s name. Beginning
with V8.13, the result of that lookup (the host??™s name) is stored in the ${client_ptr}
macro.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
814 | Chapter 21: The D (Define a Macro) Configuration Command
Note that if (and only if) the ${client_resolve} macro (?§21.9.25 on page 814) contains a
literal OK, will this ${client_ptr} macro hold the same value that the ${client_name} macro
(?§21.
Pages:
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431