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