LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 03-29-2010, 11:35 AM   #1
Kraiser10
Member
 
Registered: Mar 2010
Posts: 52

Rep: Reputation: 15
SMTP SSL in chrooted webroot.


Code:
Warning: fsockopen() [function.fsockopen]: SSL: Success in /var/www/krai/class.smtp.php on line 105

Warning: fsockopen() [function.fsockopen]: Failed to enable crypto in /var/www/krai/class.smtp.php on line 105

Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com:465 (Unknown error) in /var/www/krai/class.smtp.php on line 105
Those 3 errors popups when i chroot my webroot dir, without chrooting it works fine and email is send.
Any fix?
 
Old 03-30-2010, 05:38 PM   #2
Kraiser10
Member
 
Registered: Mar 2010
Posts: 52

Original Poster
Rep: Reputation: 15
BUMP
 
Old 03-31-2010, 06:18 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,777
Blog Entries: 54

Rep: Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977
It's hard to say anything without information shown about what's actually in the chroot, if you tested it works on the commandline, contents of /var/www/krai/class.smtp.php et cetera. Here's three links, HTH: [0|1|2].
 
Old 03-31-2010, 06:36 AM   #4
Kraiser10
Member
 
Registered: Mar 2010
Posts: 52

Original Poster
Rep: Reputation: 15
I have chrooted /var/www and class.smtp.php is located in /var/www/var/www/krai/class.smtp.php.
The script works without chroot means that i probably need some libs/bins for OPEN SSL? to work under chroot.
And i have properly have gave the libs for fsockopen for HTTP and fetching images for example from other webpage is working .
And this webpages will not probably help me because i have the /var/www/ under chroot they don't.

Last edited by Kraiser10; 03-31-2010 at 06:47 AM.
 
Old 03-31-2010, 07:42 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,777
Blog Entries: 54

Rep: Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977
Since nothing is shown about what's actually in the chroot nor if you tested it works on the command-line within the chroot, nor contents of /var/www/krai/class.smtp.php et cetera and since the links "will not probably help" that means I can't be of any help and it's end of thread for me.
 
Old 04-01-2010, 07:44 AM   #6
Kraiser10
Member
 
Registered: Mar 2010
Posts: 52

Original Poster
Rep: Reputation: 15
Why do you need a content of the class.smtp.php if i already said that it works without chroot /var/www/ ?
How can i test it via command line ?
 
  


Reply

Tags
chroot, smtp, ssl


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure apache to use windows share as webroot ? fuzioneer Linux - Software 8 01-14-2010 06:13 AM
Q: SMTP redirect to exchange over SSL r0b0jerk Linux - Networking 2 10-06-2009 01:07 PM
SMTP Server with SSL auth Penn Linux - Server 1 04-06-2009 04:51 AM
opensuse 10.3 and sending smtp via SSL/TLS newbuyer17 Linux - Server 1 02-27-2008 03:26 AM
qmail ssl and smtp not working together shmude Linux - Software 0 11-02-2005 08:02 PM


All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration