xref: /freebsd/contrib/sendmail/cf/feature/sts.m4 (revision 2fb4f839f3fc72ce2bab12f9ba4760f97f73e97f)
1*2fb4f839SGregory Neil Shapirodivert(-1)
2*2fb4f839SGregory Neil Shapiro#
3*2fb4f839SGregory Neil Shapiro# Copyright (c) 2020 Proofpoint, Inc. and its suppliers.
4*2fb4f839SGregory Neil Shapiro#	All rights reserved.
5*2fb4f839SGregory Neil Shapiro#
6*2fb4f839SGregory Neil Shapiro# By using this file, you agree to the terms and conditions set
7*2fb4f839SGregory Neil Shapiro# forth in the LICENSE file which can be found at the top level of
8*2fb4f839SGregory Neil Shapiro# the sendmail distribution.
9*2fb4f839SGregory Neil Shapiro#
10*2fb4f839SGregory Neil Shapiro
11*2fb4f839SGregory Neil Shapirodivert(-1)
12*2fb4f839SGregory Neil Shapirodefine(`_MTA_STS_', `')
13*2fb4f839SGregory Neil Shapirodefine(`_NEED_MACRO_MAP_', `1')
14*2fb4f839SGregory Neil Shapiroifelse(_ARG2_,`NO_SAN_TST',`',`define(`_STS_SAN', `1')')
15*2fb4f839SGregory Neil ShapiroLOCAL_CONFIG
16*2fb4f839SGregory Neil ShapiroO StrictTransportSecurity=true
17*2fb4f839SGregory Neil Shapiroifelse(_ARG2_,`NO_SAN_TST',`',`O SetCertAltnames=true')
18*2fb4f839SGregory Neil ShapiroKsts ifelse(defn(`_ARG_'), `', socket -d5 -T<TMPF> inet:5461@127.0.0.1,
19*2fb4f839SGregory Neil Shapiro	       defn(`_NARG_'), `', `_ARG_', `_NARG_')
20