Date: Tue, 16 Dec 2003 22:54:11 +0000 From: Jez Hancock <jez.hancock@munk.nu> To: freebsd-questions@freebsd.org Subject: Re: Sending email via PHP mail command in jail Message-ID: <20031216225411.GA57620@users.munk.nu> In-Reply-To: <20031216210536.QYZ3322.fed1mtao01.cox.net@SAMBA> References: <20031215215243.WOCQ28419.fed1mtao03.cox.net@SAMBA> <20031216210536.QYZ3322.fed1mtao01.cox.net@SAMBA>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031216225411.GA57620>