> >> 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:
> 
> [EMAIL PROTECTED] ~]# ls -la
> /var/amavis/usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/DnsResol
> ver.pm
> -rwxr-x---  1 root  vscan  14970 Jun  8 14:55
> /var/amavis/usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/DnsResol
> ver.pm
> [EMAIL PROTECTED] ~]#
> 
> Can I run a perl script using DNSResolver to test things? BTW,
> $CHROOT/etc/resolv.conf is of course present, too.


Stupid question, but $MYHOME = /var/amavis ?
Also you can try to debug it with strace.
Look for all the files you're missing in the jail and copy them into it.
(here is a little example on how to use strace to find requirements outside the 
jail - http://olivier.sessink.nl/jailkit/howtos_debug_jails.html )


Best Regards,
Leon Kolchinsky

Reply via email to