[mod-security-users] Re: chroot() and mail
Brought to you by:
victorhora,
zimmerletw
|
From: David F. <Da...@me...> - 2005-06-17 09:01:29
|
Hi, I find the PHPMailer class is useful to get round this problem. It can connect to an smtp server outside the chroot (which can still be on the same machine) even on machines were PHP won't do this directly. It has loads of other features for sending emails and formatting the headers etc. http://phpmailer.sourceforge.net/ Also useful was the Nail mail user agent, not in a chroot, but as an interface between commands expecting sendmail binaries to be present and my mail server which is actually qmail. It's very lightweight, and seems to "just work" without causing trouble. http://nail.sourceforge.net/ Hope this helps, David. >m0nkey wrote: >> Hello All >> >> I have a server using mod_security with chroot enabled. I have php/mysql >> working fine.. except for one piece. the mail function. Anyone know how to >> get >> around this? When this fails.. nothing is written to messages or error_log= . >> Removing chroot option, mail() works again. > |