Name

-d0.4

Synopsis

The -d0.4 debugging switch tells sendmail to print several lines of information in addition to those printed by -d0.1:

Version 8.12.7
Compiled with:   LOG MATCHGECOS NAMED_BIND NDBM NEWDB NETINET NETUNIX
                 NIS
canonical name: here.US.EDU                             additional 
 UUCP nodename: here                                    additional 
        a.k.a.: [123.45.67.89]                          additional 
=  ==  ==  ==  ==  ==  = SYSTEM IDENTITY (after readcf) =  ==  ==  ==  =
            (short domain name) $w = here
        (canonical domain name) $j = here.US.EDU
               (subdomain name) $m = US.EDU
                    (node name) $k = here
=  ==  ==  ==  ==  ==  ==  ==  ==  ==  ==  ==  ==  ==  ==  ==  ==  ==  ==  =

To find the canonical name of the local host, sendmail calls gethostname( ). If that call fails, the name localhost is used. The hostname is then looked up with the internal routine sm_gethostbyname( ), which gathers additional information (such as other names and addresses for the machine) and fixes several bugs in some operating system’s versions of the gethostby... routines. Next the canonical name for the local host is looked up. For operating systems that normally support switched services, the name is looked up as specified. For systems that specify switched services in the configuration file’s ServiceSwitchFile option (ServiceSwitchFile), switched services are not used because the configuration file has not been read yet. (This canonicalization process can be traced with the -61.10 debugging switch.) If the canonical name is found and that name contains a dot, sendmail saves the part of the name to the right ...

Get Sendmail, 3rd 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.