1 Aug 2009 21:31
Question about dns_verify and the return string
This is related to my previous thread, about metermaid, COS, etc.. I have one DNS zone with a bunch of different IPs defined and I want to assign the IPs to a COS depending on the value of the A record returned. Can this be done? Or do I need to split the COS out to different zones? For example, right now if I do "dig 236.184.221.84.sbl.spamhaus.org" I'll get 127.0.0.2 back. Using dns_verify I've only been able to get a Y/N answer, and not get at the return value itself. Can this be accomplished? From the ORIG_MAIL_ACCESS mapping I'm putting together the call would look something like ORIG_MAIL_ACCESS ! ! These COS do not get limits enforced ! TCP|*|25|*.*.*.*|*|*|*|*|*|*|* $C$ [IMTA_LIB:dns_verify.so,dns_verify,+\ $4.$3.$2.$1.prv.dns.zone+$$Y$$E+\ TCP|$0|25|$1.$2.$3.$4|$5|$6|$7|$8|$9|$10|$11$$C] TCP|*|25|*|*|*|*|*|*|*|* $C$|WHITELIST_IP;$1|$Y$E ! TCP|*|25|*.*.*.*|*|*|*|*|*|*|* $C$ [IMTA_LIB:dns_verify.so,dns_verify,+$4.$3.$2.$1.\ sbl.spamhaus.org+SUSPECT_MAXMSGS_MM|$1.$2.$3.$4+\(Continue reading)
Happy Monday
RSS Feed