Dump a Class Macro with $=
The $=
rule-testing
command tells sendmail to print
all the members for a class. The class name must
immediately follow the =
with no intervening space, or the
name is ignored. Both single-character and
multicharacter names can be used:
$= X ← the X is ignored $=X ← list the members of the class X $={YYY} ← list the members of the multicharacter class YYY
The list of members (if any) is printed one per line:
> $=w
here.our.domain
here
[123.45.67.89]
fax
fax.our.domain
>
To illustrate one use for this command, imagine that
you just made the local host the fax server for your
site. Of course, you were careful to modify the
configuration file and add fax
and fax.our.domain to the
$=w
class in
it. But incoming mail to
fax.our.domain is still
failing. You run sendmail in
rule-testing mode, as earlier, to verify that the
correct entries are in $=w
:
here.our.domain here [123.45.67.89] fax ← correct fax.our.domain ← correct
Because they are correct, it could be that you made the mistake of changing the configuration file and failing to restart the daemon (Daemon mode (-bd) on page 20). The following command line fixes the problem (SIGHUP on page 509):
# kill -HUP `head −1 /etc/mail/sendmail.pid`
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.