Hi,
If you have restored some accounts with DirectAdmin - there are no mail record on its /var/named files (bug: http://www.directadmin.com/features.php?id=717). I've just written a script to repair all the files in /var/named.
Good luck!
If you have restored some accounts with DirectAdmin - there are no mail record on its /var/named files (bug: http://www.directadmin.com/features.php?id=717). I've just written a script to repair all the files in /var/named.
Code:
#!/bin/sh
cd /var/named
echo "Please write your server IP and press Enter to continue or type quit:"
read IP
if [ "$IP" = "quit" ] ; then
exit 0
fi
for i in `ls *.db`;
do
COUNT=`grep -c -e '^mail' $i`
if [ $COUNT = 0 ]; then
echo "mail 14400 IN A $IP" >> $i
echo "$i completely modified"
else
echo "There is no need to modify $i"
fi
done
echo "-----------------------------"
echo "All zones completely modified!"
echo "-----------------------------"
Good luck!