copied the /usr/bin/perl to the /chroot/usr/bin/perl
and the /usr/lib/perl5 to the /chroot/usr/lib/perl5
now when i try to run a perl script for example
#!/usr/bin/perl
use MIME::Lite;
$msg = MIME::Lite->new(
Type =>'text/html',
From =>'[EMAIL PROTECTED]',
To =>'[EMAIL PROTECTED]',
Subject =>"Hello",
Data => qq { Hello }
);
$msg->send('smtp', 'host.com');
with the command
/usr/sbin/chroot /chroot/ /usr/bin/perl /mail.pl
i receive the error
Failed to connect to mail server: No such file or directory
at /mail.pl line 19 ($msg->send('smtp', 'host.com')
This script works well outside the chroot area.
What is wrong with that?