From owner-freebsd-questions@FreeBSD.ORG Tue Dec 16 14:54:14 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B42216A4CE for ; Tue, 16 Dec 2003 14:54:14 -0800 (PST) Received: from munk.nu (mail.munk.nu [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id C85CA43D33 for ; Tue, 16 Dec 2003 14:54:12 -0800 (PST) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.24; FreeBSD) id 1AWO4x-000Gvr-P2 for freebsd-questions@freebsd.org; Tue, 16 Dec 2003 22:54:11 +0000 Date: Tue, 16 Dec 2003 22:54:11 +0000 From: Jez Hancock To: freebsd-questions@freebsd.org Message-ID: <20031216225411.GA57620@users.munk.nu> Mail-Followup-To: freebsd-questions@freebsd.org References: <20031215215243.WOCQ28419.fed1mtao03.cox.net@SAMBA> <20031216210536.QYZ3322.fed1mtao01.cox.net@SAMBA> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031216210536.QYZ3322.fed1mtao01.cox.net@SAMBA> User-Agent: Mutt/1.4.1i Subject: Re: Sending email via PHP mail command in jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2003 22:54:14 -0000 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: servername domain.com ... other directives php_admin_value sendmail_path "sendmail -f user@domain.com" 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