badmx.m4 revision 266692
1168515Sgshapirodivert(-1) 2168515Sgshapiro# 3261363Sgshapiro# Copyright (c) 2006 Proofpoint, Inc. and its suppliers. 4168515Sgshapiro# All rights reserved. 5168515Sgshapiro# 6168515Sgshapiro# By using this file, you agree to the terms and conditions set 7168515Sgshapiro# forth in the LICENSE file which can be found at the top level of 8168515Sgshapiro# the sendmail distribution. 9168515Sgshapiro# 10168515Sgshapiro# 11168515Sgshapiro 12168515Sgshapirodivert(0) 13266692SgshapiroVERSIONID(`$Id: badmx.m4,v 1.2 2013-11-22 20:51:11 ca Exp $') 14168515Sgshapirodivert(-1) 15168515Sgshapiro 16168515Sgshapirodefine(`_BADMX_CHK_', 1) 17168515Sgshapiro 18168515SgshapiroLOCAL_CONFIG 19168515SgshapiroKmxlist bestmx -z: -T<TEMP> 20168515SgshapiroKbadmx regex -a<BADMX> ^(([0-9]{1,3}\.){3}[0-9]){0,1}\.$ 21168515SgshapiroKdnsA dns -R A -a. -T<TEMP> 22168515SgshapiroKBadMXIP regex -a<BADMXIP> ifelse(defn(`_ARG_'), `', `^(127\.|10\.|0\.0\.0\.0)', `_ARG_') 23