#!/bin/sh # Check all domain defines in /etc/named.boot an verify if they # are properly installed with vpop3d. # we assume that in each domain, there is a "mail" host doall_named_boot(){ while read keyw dom rest do if [ "$keyw" = "primary" ] ; then case $dom in *.IN-ADDR.ARPA) ;; *) /usr/lib/linuxconf/lib/checkvdomain $dom mail ;; esac fi done } doall_named_conf(){ while read keyw dom rest do if [ "$keyw" = "zone" ] ; then # unquote and remove the { dom=`echo $dom | sed s/{// | sed s/\"// | sed s/\"//` case $dom in *.IN-ADDR.ARPA) ;; .) ;; *) /usr/lib/linuxconf/lib/checkvdomain $dom mail ;; esac fi done } if [ -f /etc/named.conf ] then doall_named_conf