From: "Leon Kolchinsky"

>> I tried to set up SA with AMaViS in a chrooted environment
>> ($daemon_chroot_dir = $MYHOME). I (thought I) copied all necessary files
>> to
>> the jail but when SA is starting I get an error:
>> Jul 10 10:44:02 TEG /usr/local/sbin/amavisd[6817]: SpamControl:
>> initializing
>> Mail::SpamAssassin
>> Error creating a DNS resolver socket: No such file or directory at
>> /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/DnsResolver.pm
>> line 227.
>> Jul 10 10:44:05 TEG /usr/local/sbin/amavisd[6817]: SpamControl:
>> init_pre_fork done
>> Any idea what is missing?

> Do you have this
> /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/DnsResolver.pm
> File in your chrooted environment?


Yes:

[root@TEG ~]# ls -la
/var/amavis/usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/DnsResolver.pm
-rwxr-x--- 1 root vscan 14970 Jun 8 14:55
/var/amavis/usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/DnsResolver.pm
[root@TEG ~]#

Can I run a perl script using DNSResolver to test things? BTW,
$CHROOT/etc/resolv.conf is of course present, too.