[Top] [All Lists]

Re: [ietf-smtp] IETF Policy on dogfood consumption or avoidance - SMTP version

2019-12-21 16:21:10

On Dec 21, 2019, at 3:47 PM, Keith Moore 
<moore(_at_)network-heretics(_dot_)com> wrote:

So if you don't have an explicitly configured hostname, do you simply refuse 
to send messages?   Or send EHLO  or what?

There's always a hostname.  It defaults to the return value of gethostname().
And if that contains no dots, and "mydomain" is not set, then the domain
defaults to "localdomain".  So worst case you get "shortname.localdomain".

Internal documentation:

      get_hostname() returns the local hostname as obtained
      via gethostname() or its moral equivalent. This routine
      goes to great length to avoid dependencies on any network
      Fatal errors: no hostname, invalid hostname.

DNS is nowhere nearly universal, and cannot be.

There is deliberately no name resolution dependency (DNS or
otherwise) in the code that determines the system hostname.
Postfix is documented to work on systems that are not connected
to the Internet.  All that's required is:

        smtp_host_lookup = native


ietf-smtp mailing list

<Prev in Thread] Current Thread [Next in Thread>