nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 763638654f6d62ebb129f1b60a2fbf9d409590f4
parent 796dbc19914bd6039cca7b6e19c9d38a8eb3a10f
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Fri,  1 May 2020 13:23:08 +0200

dns: remove dns_cname, unused.

Diffstat:
MFAQ.md | 11-----------
Mdns.c | 31-------------------------------
Mdns.h | 1-
3 files changed, 0 insertions(+), 43 deletions(-)

diff --git a/FAQ.md b/FAQ.md @@ -11,7 +11,6 @@ document, and <http://qmail.org/> for qmail community contributions. 2.2. How do I set up a null client? 2.3. How do I send outgoing mail through UUCP? 2.4. How do I set up a separate queue for a SLIP/PPP link? -2.5. How do I deal with "CNAME lookup failed temporarily"? 3. Routing incoming messages by host 3.1. How do I receive mail for another host name? @@ -136,16 +135,6 @@ running, give it a HUP. Answer: Use serialmail (<https://cr.yp.to/serialmail.html>). -2.5. How do I deal with "CNAME lookup failed temporarily"? The log -showed that a message was deferred for this reason. Why is qmail doing -CNAME lookups, anyway? - -Answer: The SMTP standard does not permit aliased hostnames, so qmail -has to do a CNAME lookup in DNS for every recipient host. If the -relevant DNS server is down, qmail defers the message. It will try again -soon. - - 3. Routing incoming messages by host diff --git a/dns.c b/dns.c @@ -187,37 +187,6 @@ int flagsearch; if (flagsearch) lookup = res_search; } -int dns_cname(sa) -stralloc *sa; -{ - int r; - int loop; - for (loop = 0;loop < 10;++loop) - { - if (!sa->len) return loop; - if (sa->s[sa->len - 1] == ']') return loop; - if (sa->s[sa->len - 1] == '.') { --sa->len; continue; } - switch(resolve(sa,T_CNAME)) - { - case DNS_MEM: return DNS_MEM; - case DNS_SOFT: return DNS_SOFT; - case DNS_HARD: return loop; - default: - while ((r = findname(T_CNAME)) != 2) - { - if (r == DNS_SOFT) return DNS_SOFT; - if (r == 1) - { - if (!stralloc_copys(sa,name)) return DNS_MEM; - break; - } - } - if (r == 2) return loop; - } - } - return DNS_HARD; /* alias loop */ -} - #define FMT_IAA 40 static int iaafmt(char *s, struct ip_address *ipa) diff --git a/dns.h b/dns.h @@ -6,7 +6,6 @@ #define DNS_MEM -3 void dns_init(); -int dns_cname(); int dns_mxip(); int dns_ip(); int dns_ptr();