head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.18 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.16 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.14 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.12 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.10 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.8 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.6 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.4 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.2 pkgsrc-2024Q1-base:1.1; locks; strict; comment @# @; 1.1 date 2024.01.15.04.50.56; author jnemeth; state Exp; branches; next ; commitid Nv1wagQpcgwUbvUE; desc @@ 1.1 log @mail/sendmail-snapshot: import sendmail-8.18.0.2 Sendmail acts as a unified "post office" to which all mail can be submitted. Address interpretation is controlled by a production system, which can parse both domain-based addressing and old-style "ad hoc" addresses. The production system is powerful enough to rewrite addresses in the message header to conform to the standards of a number of common target networks, including old (NCP/RFC733) Arpanet, new (TCP/RFC822) Arpanet, UUCP, and Phonenet. Sendmail also implements an SMTP server, message queueing, and aliasing. This package is for snapshot (alpha/beta) releases, which aren't considered to be release/production quality. It may be used to test new features. Some features / bug fixes may be backported to the regular sendmail package. @ text @$NetBSD$ --- sendmail/readcf.c.orig 2023-04-27 10:39:42.000000000 +0000 +++ sendmail/readcf.c @@@@ -26,6 +26,10 @@@@ SM_RCSID("@@(#)$Id: readcf.c,v 8.692 2013 # include #endif +#if NAMED_BIND +extern struct __res_state sm_res; +#endif + #define SECONDS #define MINUTES * 60 @@@@ -3210,6 +3214,9 @@@@ static struct optioninfo { "CipherSuites", O_CIPHERSUITES, OI_NONE }, #endif +# define O_BLACKLIST 0xfb + { "UseBlacklist", O_BLACKLIST, OI_NONE }, + { NULL, '\0', OI_NONE } }; @@@@ -3620,13 +3627,13 @@@@ setoption(opt, val, safe, sticky, e) if (rfp->rf_name == NULL) syserr("readcf: I option value %s unrecognized", q); else if (clearmode) - _res.options &= ~rfp->rf_bits; + sm_res.options &= ~rfp->rf_bits; else - _res.options |= rfp->rf_bits; + sm_res.options |= rfp->rf_bits; } if (tTd(8, 2)) - sm_dprintf("_res.options = %x, HasWildcardMX = %d\n", - (unsigned int) _res.options, HasWildcardMX); + sm_dprintf("sm_res.options = %x, HasWildcardMX = %d\n", + (unsigned int) sm_res.options, HasWildcardMX); #else /* NAMED_BIND */ usrerr("name server (I option) specified but BIND not compiled in"); #endif /* NAMED_BIND */ @@@@ -4949,6 +4956,10 @@@@ setoption(opt, val, safe, sticky, e) break; #endif + case O_BLACKLIST: + UseBlacklist = atobool(val); + break; + default: if (tTd(37, 1)) { @