Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to use the mail() function in PHP on a Debain Linux server.

I have 2 web servers running. One is in a chrooted setup.

The server that's not chrooted works fine, the other one wont send email.

Any idea how I can setup emailing in the chrooted setup?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

PHP uses the external sendmail program to send E-mail messages (1, 2). To avoid installing it in its entirety in the chroot jail, lightweight programs exist that can provide the necessary functionality within the jail. How-tos for setting this up exist.

share|improve this answer
    
Thanks, I found this link after searching some of this information. cyberciti.biz/tips/… –  Petah Dec 2 '10 at 1:59
add comment

There is a small utility called "mail" or "email" or something like that, which can be installed as a simple replacement for sendmail, postfix, qmail, ... Just install to the chrooted environment and redirect the mails to the mailserver outside the jail.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.