xref: /freebsd/contrib/sendmail/cf/feature/conncontrol.m4 (revision af23369a6deaaeb612ab266eb88b8bb8d560c322)
1divert(-1)
2#
3# Copyright (c) 2003, 2004 Proofpoint, Inc. and its suppliers.
4#	All rights reserved.
5#
6# By using this file, you agree to the terms and conditions set
7# forth in the LICENSE file which can be found at the top level of
8# the sendmail distribution.
9#
10#
11
12divert(0)
13VERSIONID(`$Id: conncontrol.m4,v 1.5 2013-11-22 20:51:11 ca Exp $')
14
15divert(-1)
16ifdef(`_ACCESS_TABLE_', `
17	define(`_CONN_CONTROL_', `1')
18	ifelse(defn(`_ARG_'), `', `',
19		strcasecmp(defn(`_ARG_'), `nodelay'), `1',
20		`ifdef(`_DELAY_CHECKS_',
21			`
22			define(`_CONN_CONTROL_IMMEDIATE_', `1')
23			define(`_CONTROL_IMMEDIATE_', `1')
24			',
25			`errprint(`*** ERROR: FEATURE(`conncontrol', `nodelay') requires FEATURE(`delay_checks')')'
26		)',
27		`errprint(`*** ERROR: unknown parameter '"defn(`_ARG_')"` for FEATURE(`conncontrol')')')
28	define(`_FFR_SRCHLIST_A', `1')
29	ifelse(len(X`'_ARG2_), `1', `',
30		_ARG2_, `terminate', `define(`_CONN_CONTROL_REPLY', `421')',
31		`errprint(`*** ERROR: FEATURE(`conncontrol'): unknown argument '"_ARG2_"
32)'
33		)
34	', `errprint(`*** ERROR: FEATURE(`conncontrol') requires FEATURE(`access_db')
35')')
36ifdef(`_CONN_CONTROL_REPLY',,`define(`_CONN_CONTROL_REPLY', `452')')
37