$ line

Restore macro value V8.6 and later

The sendmail program uses the $r sendmail macro ($r on page 842) to store the protocol used when sendmail first received a mail message. If the message was received by using SMTP, that protocol is smtp. Otherwise, it is NULL.

The sendmail program uses the $s sendmail macro ($s on page 844) to store the full canonical name of the sender’s machine.

The sendmail program uses the $_ sendmail macro ($_ on page 801) to store RFC1413 identd(8) information and IP source-routing information.

When sendmail creates a qf file, it saves the values of the $r, $s, and $_ sendmail macros in lines that begin with $.

The form of the $ line in the qf file looks like this:

$Xvalue
${XXX}value

The $ must begin the line, and the sendmail macro’s single-character name (the X) or multicharacter name (the {XXX}) must immediately follow with no intervening space. The sendmail macro’s name is followed (again with no intervening space) by the value of the macro.

If value is missing, the value given to the macro is NULL. If the macro name and value are missing, the macro \ is given a value of NULL. If both are present, the macro whose name is specified is given the value specified (value).

There can be multiple $ lines. The sendmail macro names to be stored in the qf file are listed in the $={persistentMacros} class ($={persistentMacros} on page 873).

Get sendmail, 4th 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.