xref: /freebsd/contrib/sendmail/cf/feature/badmx.m4 (revision fed1ca4b719c56c930f2259d80663cd34be812bb)
1divert(-1)
2#
3# Copyright (c) 2006 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: badmx.m4,v 1.2 2013-11-22 20:51:11 ca Exp $')
14divert(-1)
15
16define(`_BADMX_CHK_', 1)
17
18LOCAL_CONFIG
19Kmxlist bestmx -z: -T<TEMP>
20Kbadmx regex -a<BADMX> ^(([0-9]{1,3}\.){3}[0-9]){0,1}\.$
21KdnsA dns -R A -a. -T<TEMP>
22KBadMXIP regex -a<BADMXIP> ifelse(defn(`_ARG_'), `', `^(127\.|10\.|0\.0\.0\.0)', `_ARG_')
23