- Original Message -
From: "Jonathan Paton" <[EMAIL PROTECTED]>
To: "John" <[EMAIL PROTECTED]>; "Perl Beginners" <[EMAIL PROTECTED]>
Sent: Saturday, December 18, 2004 9:31 PM
Subject: Re: trying to chroot perl and its modules
> > Well, i am trying to figure out what i have forgotten to
> Well, i am trying to figure out what i have forgotten to copy into
> the chroot jail. Why should my experiment not work? I cannot
> see any reason of not working.
My mistake, reading again I find your script is called "mail.pl".
The problem is disguised by Mime::Lite, as the actual file is not
- Original Message -
From: "Jonathan Paton" <[EMAIL PROTECTED]>
To: "John" <[EMAIL PROTECTED]>; "Perl Beginners" <[EMAIL PROTECTED]>
Sent: Saturday, December 18, 2004 6:54 PM
Subject: Re: trying to chroot perl and its modules
> > with the command
> >
> > /usr/sbin/chroot /chroot/ /usr/b
> 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.
Problem is either a misunde
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]