Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th August 2007, 13:47
dualxeon dualxeon is offline
Junior Member
 
Join Date: Aug 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP mail() Chrooted Apache

Hi,
I have just set up my apache installation on debian etch with mod_chroot. I have chrooted apache to /var/www .

However i have been having problems sending emails with php mail() , i had a look on the internet and found that many people are having this problem becuase the sendmail program is outside the chroot. I had a look on the internet and found this tutorial to fix the problem:

http://www.cyberciti.biz/tips/howto-...-lighttpd.html

I followed this tutorial but still cant send emails have oyu got any idea how can get it to work?

Thanks,
Alex
Reply With Quote
Sponsored Links
  #2  
Old 20th August 2007, 13:54
dualxeon dualxeon is offline
Junior Member
 
Join Date: Aug 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Also if from root you run the command chroot /var/www it works correctly, i was wondering how would i test the sendmail in the chroot.
Thanks,
Alex
Reply With Quote
  #3  
Old 21st August 2007, 16:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Did you put sendmail into your chroot jail?
Do you get any errors (also in the logs) when you try to send mails?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 21st August 2007, 17:35
dualxeon dualxeon is offline
Junior Member
 
Join Date: Aug 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yea, i have got the mini_sendmail in /usr/sbin/sendmail inside the chroot jail.

I checked the mail.log but the email doesnt appear to even get that far, there nothing in the mail.log

Do you know how to send a message with send mail? I could try sending a message from it to test it, but i dont how.

Thanks,
Alex

Last edited by dualxeon; 21st August 2007 at 17:40.
Reply With Quote
  #5  
Old 21st August 2007, 23:10
dualxeon dualxeon is offline
Junior Member
 
Join Date: Aug 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your help, but problem is solved
Reply With Quote
  #6  
Old 22nd August 2007, 09:15
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
 
Default

Could you explain the solution for others having the same problem, once?

thx
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 09:29
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18
Postfix reject connections gabrix Server Operation 27 25th January 2007 08:37
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47


All times are GMT +2. The time now is 16:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.