summaryrefslogtreecommitdiff
path: root/mail/sendmail/patches/patch-bo
blob: 18d17a580d8952207ce163e9cf2ab6e470695655 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$NetBSD: patch-bo,v 1.5 2022/05/10 13:46:49 sborrill Exp $

Add blacklist support.
Pull up SMTP AUTH fix from 8.17.1.9 as per:
	https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262935

--- sendmail/sendmail.h.orig	2020-07-02 05:00:37.000000000 +0000
+++ sendmail/sendmail.h	2022-05-10 09:51:29.162720330 +0000
@@ -63,6 +63,10 @@
 #endif
 
 #include "bf.h"
+#ifdef USE_BLACKLIST
+#include <blacklist.h>
+#endif
+#include "blacklist_client.h"
 #include "timers.h"
 #include <sm/exc.h>
 #include <sm/heap.h>
@@ -706,7 +710,7 @@
 # define SASL_IS_AUTH	2		/* authenticated */
 
 /* SASL options */
-# define SASL_AUTH_AUTH	0x1000		/* use auth= only if authenticated */
+# define SASL_AUTH_AUTH	0x10000		/* use auth= only if authenticated */
 # if SASL >= 20101
 #  define SASL_SEC_MASK	SASL_SEC_MAXIMUM /* mask for SASL_SEC_* values: sasl.h */
 # else /* SASL >= 20101 */
@@ -2576,6 +2580,8 @@
 
 EXTERN int ConnectionRateWindowSize;
 
+EXTERN bool	UseBlacklist;
+
 /*
 **  Declarations of useful functions
 */