xref: /freebsd/contrib/sendmail/cf/feature/sts.m4 (revision 2fb4f839)
1divert(-1)
2#
3# Copyright (c) 2020 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
11divert(-1)
12define(`_MTA_STS_', `')
13define(`_NEED_MACRO_MAP_', `1')
14ifelse(_ARG2_,`NO_SAN_TST',`',`define(`_STS_SAN', `1')')
15LOCAL_CONFIG
16O StrictTransportSecurity=true
17ifelse(_ARG2_,`NO_SAN_TST',`',`O SetCertAltnames=true')
18Ksts ifelse(defn(`_ARG_'), `', socket -d5 -T<TMPF> inet:5461@127.0.0.1,
19	       defn(`_NARG_'), `', `_ARG_', `_NARG_')
20