#!/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(){
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 </etc/named.boot

