• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/sendmail/src/

Lines Matching refs:host

216 **  GETTLSA -- get TLSA records for named host using DNS
219 ** host -- host
220 ** name -- name for stab entry key (if NULL: host)
223 ** mxttl -- TTL of MX (or host)
237 gettlsa(host, name, pste, flags, mxttl, port)
238 char *host;
255 SM_REQUIRE(host != NULL);
258 if ('\0' == *host)
263 name = host;
282 host, isrname ? "" : name, (void *)ste, (void *)pste,
331 (void) sm_snprintf(nbuf, sizeof(nbuf), "_%u._tcp.%s", port, host);
336 sm_dprintf("gettlsa(%s), dr=%p, ad=%d, err=%d, herr=%d\n", host,
346 host, n_rrs, dane_tlsa->dane_tlsa_dnsrc);
355 dane_tlsa->dane_tlsa_sni = sm_strdup(host);
373 sm_dprintf("gettlsa(%s, %s), status=error\n", host, key);
385 host[len] = '.';
391 ** GETFALLBACKMXRR -- get MX resource records for fallback MX host.
400 ** host -- the name of the fallback MX host.
414 getfallbackmxrr(host)
415 char *host;
423 if (host == NULL || *host == '\0')
431 if (host[0] == '[')
433 fbhosts[0] = host;
449 NumFallbackMXHosts = getmxrr(host, fbhosts, NULL,
465 ** FALLBACKMXRR -- add MX resource records for fallback MX host to list.
477 ** that host to mxhosts (and modifies prefs accordingly).
503 ** host -- the name of the host to MX.
509 ** than the local host (as determined by $=w) will
511 ** TRYFALLBACK -- add also fallback MX host?
512 ** ISAD -- host lookup was secure?
519 ** If no MX records are found, mxhosts[0] is set to host
529 getmxrr(host, mxhosts, mxprefs, flags, rcode, pttl, port)
530 char *host;
566 host, (flags & DROPLOCALHOST) != 0, flags, port);
571 if (*host == '\0')
594 if (host[0] == '[')
605 (void) sm_strlcpy(qname, host, sizeof(qname));
609 if (!addr_is_ascii(host))
617 (void) uidna_nameToASCII_UTF8(idna, host, strlen(host),
621 host = sm_rpool_strdup_x(CurEnv->e_rpool, buf);
626 ** If we don't have MX records in our host switch, don't
629 ** if the host is found in NIS we really shouldn't be doing
646 n = (*resfunc)(host, C_IN, T_MX, (unsigned char *) &answer,
653 host, errno, strerror(errno),
657 host, h_errno);
666 /* no MX data on this host */
673 /* host doesn't exist in DNS; might be in /etc/hosts */
693 host, h_errno);
704 sm_dprintf("getmxrr(%s), hp=%p, ad=%d\n", host, (void*)hp, ad);
804 ** host MX 0 .
891 ** an error -- we should NEVER send to a host that
905 h = sm_gethostbyname(host, AF_INET);
919 h = sm_gethostbyname(host, AF_INET6);
937 host, MyHostName);
945 if (strlen(host) >= sizeof(MXHostBuf))
949 shortenstring(host, MAXSHORTSTR));
952 (void) sm_strlcpy(MXHostBuf, host, sizeof(MXHostBuf));
955 if (host[0] == '[')
1062 ** computes a pseudo-random hash function from the host name.
1065 ** host -- the name of the host.
1068 ** A random but repeatable value based on the host name.
1072 mxrand(host)
1073 register char *host;
1086 sm_dprintf("mxrand(%s)", host);
1089 while (*host != '\0')
1091 int c = *host++;
1153 syserr("bestmx_map_lookup: MX host %.64s includes map delimiter character 0x%02X",
1193 syserr("bestmx_map_lookup: MX host %.64s includes map delimiter character 0x%02X",
1218 ** DNS_GETCANONNAME -- get the canonical name for named host using DNS
1236 ** host -- a buffer containing the name of the host.
1238 ** hbsize -- the size of the host buffer.
1244 ** >0 -- if the host was found.
1249 dns_getcanonname(host, hbsize, trymx, statp, pttl)
1250 char *host;
1283 sm_dprintf("dns_getcanonname(%s, trymx=%d)\n", host, trymx);
1313 ** list by tearing apart the host name.
1319 for (cp = host, n = 0; *cp != '\0'; cp++)
1386 host, dp,
1395 ret = (*resqdomain)(host, dp, C_IN, qtype,
1564 host);
1572 host);
1587 (void) sm_strlcpy(host, nbuf, hbsize);
1649 (void) sm_snprintf(nbuf, sizeof(nbuf), "%.*s%s%.*s", MAXDNAME, host,
1652 (void) sm_strlcpy(host, nbuf, hbsize);
1654 sm_dprintf("dns_getcanonname: %s\n", host);