Thanks, but I ran into several other problems when trying to configure bind. They are now solved.
I had chrooted bind into /var/lib/named/ but the configuration files were put in /var/cache/bind/ instead of the chrooted location.
To sum my trial and errors experience up, this is what was needed:
Code:
chown bind /var/cache/bind/*
cp /var/cache/bind /var/lib/named/var/cache/ -r
rm /var/cache/bind/ -r
ln -s /var/lib/named/var/cache/bind/ /var/cache/
chown bind /etc/ispcp/bind/working/* # I guess...
Some error messages from /var/log/syslog I encountered on the way (to help googlers):
Code:
# originally:
Sep 5 22:12:50 ubuntu103 named[32479]: zone mydomain.net/IN: loading master file /var/cache/bind/mydomain.net.db: file not found
# this was when I symlinked the wrong way (out from chroot jail which is forbidden):
Sep 5 22:38:45 ubuntu103 named[515]: zone mydomain.net/IN: loading master file /var/cache/bind/mydomain.net.db: invalid file
# ...it should look like:
Sep 5 22:48:09 ubuntu103 named[645]: zone mydomain.net/IN: loaded serial 2007090500
Now the mails are delivered through my external mail server.
Thanks for all the bright guidance, joximu!