Sending email via PHP mail command in jail
Jez Hancock
jez.hancock at munk.nu
Tue Dec 16 14:54:14 PST 2003
On Tue, Dec 16, 2003 at 02:05:04PM -0700, Brent Wiese wrote:
> Just in case anyone was following this thread, "esmtp" in the ports works
> beautifully.
Has that sorted you out then?
I was thinking you could make use of the php.ini setting:
sendmail_path
to set the sendmail_path on a per-user / vhost basis in your httpd.conf
file:
<virtualhost ip:port>
servername domain.com
... other directives
php_admin_value sendmail_path "sendmail -f user at domain.com"
</virtualhost>
For this to work in Exim - sorry don't know about postfix - you'd need
to add the user the httpd was running as (www) as a 'trusted_user' in
the Exim config - no doubt this would be the same in postfix.
--
Jez Hancock
- System Administrator / PHP Developer
http://munk.nu/
http://jez.hancock-family.com/ - personal weblog
http://ipfwstats.sf.net/ - ipfw peruser traffic logging
More information about the freebsd-questions
mailing list