EnderUNIX Team.


EnderUNIX tips

Mail to My Friend , Home Page

[ Apache ]

"apache chroot sending email" - Gökhan ALKAN - (2008-01-25 21:56:32)   [8215]

If you have apache running inside chroot , you cant send email via php's mail functions through apache. But you can perform this via mini_sendmail.The message is sent by connecting to a local SMTP server . So you can use it inside chroot.

First fetch the files ;

# wget http://www.acme.com/software/mini_sendmail/mini_sendmail-1.3.6.tar.gz
# tar -zxvf mini_sendmail-1.3.6.tar.gz
# cd mini_sendmail-1.3.6
# make

Then edit your php.ini like this

sendmail_path = /usr/sbin/sendmail -t -i

Note: Bash or sh must be installed inside chroot due to the fact that mini_sendmail can send email .

In order to test mini_sendmail whether it can perform or not try this

# echo 'Subject: enderunix' | ./mini_sendmail -v gonderbaba@enderunix.org


Mail to My Friend , Home Page