xref: /titanic_41/usr/src/cmd/sendmail/cf/feature/badmx.m4 (revision bdb9230ac765cb7af3fc1f4119caf2c5720dceb3)
1divert(-1)
2#
3# Copyright (c) 2006 Sendmail, 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# ident	"%Z%%M%	%I%	%E% SMI"
11#
12
13divert(0)
14VERSIONID(`$Id: badmx.m4,v 1.1 2006/12/16 00:56:32 ca Exp $')
15divert(-1)
16
17define(`_BADMX_CHK_', 1)
18
19LOCAL_CONFIG
20Kmxlist bestmx -z: -T<TEMP>
21Kbadmx regex -a<BADMX> ^(([0-9]{1,3}\.){3}[0-9]){0,1}\.$
22KdnsA dns -R A -a. -T<TEMP>
23KBadMXIP regex -a<BADMXIP> ifelse(defn(`_ARG_'), `', `^(127\.|10\.|0\.0\.0\.0)', `_ARG_')
24