1*3544Sjbeckdivert(-1) 2*3544Sjbeck# 3*3544Sjbeck# Copyright (c) 2006 Sendmail, Inc. and its suppliers. 4*3544Sjbeck# All rights reserved. 5*3544Sjbeck# 6*3544Sjbeck# By using this file, you agree to the terms and conditions set 7*3544Sjbeck# forth in the LICENSE file which can be found at the top level of 8*3544Sjbeck# the sendmail distribution. 9*3544Sjbeck# 10*3544Sjbeck# ident "%Z%%M% %I% %E% SMI" 11*3544Sjbeck# 12*3544Sjbeck 13*3544Sjbeckdivert(0) 14*3544SjbeckVERSIONID(`$Id: badmx.m4,v 1.1 2006/12/16 00:56:32 ca Exp $') 15*3544Sjbeckdivert(-1) 16*3544Sjbeck 17*3544Sjbeckdefine(`_BADMX_CHK_', 1) 18*3544Sjbeck 19*3544SjbeckLOCAL_CONFIG 20*3544SjbeckKmxlist bestmx -z: -T<TEMP> 21*3544SjbeckKbadmx regex -a<BADMX> ^(([0-9]{1,3}\.){3}[0-9]){0,1}\.$ 22*3544SjbeckKdnsA dns -R A -a. -T<TEMP> 23*3544SjbeckKBadMXIP regex -a<BADMXIP> ifelse(defn(`_ARG_'), `', `^(127\.|10\.|0\.0\.0\.0)', `_ARG_') 24